Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify err:XD0011 in p:load #638

Closed
ndw opened this issue Oct 14, 2024 · 0 comments · Fixed by #650
Closed

Clarify err:XD0011 in p:load #638

ndw opened this issue Oct 14, 2024 · 0 comments · Fixed by #650

Comments

@ndw
Copy link
Collaborator

ndw commented Oct 14, 2024

The semantics of p:document defer to p:load. In p:load, we find:

It is a dynamic error (err:XD0011) if the resource referenced by a p:load element does not exist or cannot be accessed.

I think we should clarify that if the protocol used to load the document returns an error (404, for example, in the case of http or https), the error should be raised. It's possible to interpret the current wording as meaning that, but we should be more explicit.

At the moment, in my implementation, if you attempt to GET a document that doesn't exist, and the server returns a well-formed error document along with the 404 response, I (incorrectly, I believe) return the error document as the resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant