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

All HTTP error responses containing a body should use the problem details format #3088

Open
benfrancis opened this issue Apr 27, 2023 · 0 comments
Labels
bug w3c-compliance wot-profile W3C WoT Profile specification

Comments

@benfrancis
Copy link
Member

The WoT Profile specification says:

If an HTTP error response contains a body, the content of that body MUST conform with the Problem Details format [RFC7807].

Currently there are some error responses which don't conform to this format, e.g. because they contain a plan text error message or print out a JavaScript error object.

In order to comply with the WoT Profile specification we need to modify at least all error responses which fall within the scope of the HTTP Basic Profile and HTTP SSE Profile to follow the Problem Details format, or not send a body at all.

@benfrancis benfrancis added bug w3c-compliance wot-profile W3C WoT Profile specification labels Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug w3c-compliance wot-profile W3C WoT Profile specification
Projects
None yet
Development

No branches or pull requests

1 participant