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 status codes and responses #206
Conversation
Deploy preview for gnap-core-protocol-editors-draft ready! Built without sensitive environment variables with commit 7db9ff3 https://deploy-preview-206--gnap-core-protocol-editors-draft.netlify.app |
In general I think we're holding off on defining error codes until the core protocol is more solid, but thanks for this! See #79 for the issue tracking this major hole in the spec. |
I was a bit surprised that the draft says nothing about any HTTP status codes in case of errors. 400 (and 401) are the most important ones in my opinion. These changes just a little step in this direction... without defining detailed error codes. |
…ake of consistency).
Not accepted, will address both error codes and response codes in a more comprehensive edit in the future. |
I concur with adeinega when he says:
Common error codes should be mentioned in the draft, in particular 401, 403 and 405. This will augment the size of the document of about one page, but it is worth to do it, in particular |
The editors have agreed (and stated above) that error codes need to be added to the draft. However, that should be done in a more comprehensive manner than what is described in this PR and so we will address it in a future update. Nobody is saying that we should not add error codes, so please don't imply otherwise. |
GNAP is closely tied with The Hypertext Transfer Protocol (HTTP) and, as a starting point, it is worth specifying that
before we go any further and identify detailed error codes and this is exactly what I suggested doing in this PR. Although, those are pretty minor changes and if the editors / WG decide to not include them, I'm OK. This specification could mention lots of other nuances in this area... such as redirect policies (if there are any) for the grant, introspect, continuation, as well as other endpoints. The use and presence of standard response headers like |
No description provided.