-
Notifications
You must be signed in to change notification settings - Fork 10
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
HTTP Warning header #113
Comments
The new draft justifies depreciation based on a claim that all mainstream user agents ignore that header. So, using it shouldn’t harm anything (but there’s always the risk it could be re-activated in the future so its probably best to follow the existing semantics). There were several revisions of an Internet Draft (that expired last spring) (on GitHub) that was aiming to provide something similar for API usage. Edit: there appears to be a standards-track RFC purpose-made for this sort of thing: RFC 7807 Problem Details for HTTP APIs |
This is cool, thank you for sharing. I'll look into RFC7807 when I finally get to making the error handling better |
I think json errors can use this when an Exception or list of exceptions is all that is in the Response body in development and by default: I think production errors could use this format but it would make more sense to return whatever is the agreed upon with the frontend. I think the warning header can be used in systems that have debug activated or something like that, that way testing production ready systems will use the agreed error body format but if they are in the dev or staging we can set the warning header with additional information on the raised errors to help frontend debug. When I actually get around to implementing this I think this is the direction I will go. |
Should Endpoints use these for error message? It might be deprecated
Links:
The text was updated successfully, but these errors were encountered: