-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unspecified "200 OK" responses acceptable? #3
Comments
My read on it is that the response should be appropriate to what would be presented for an unauthorized access to the resource. If there’s content to be served it’s a 200, if there’s no content due to lack of access it’s 403, if there’s no content due to it being nonexistent it’s 404 or 410, and so on. The wording could probably be clarified along those lines though (especially if I’m not reading it right). |
I think specifying more specific responses wherever possible is a good thing. This will ensure implementers that anything else is a garbage response. If we are talking about requests that set a callback, maybe we can take inspiration from WebSub’s subscription response, which details both the OK and failure states:
|
Ok, I clearly need to rework the wording on errors - errors should of course not use 2xx status codes, and I hadn't intended them to. Good point on |
The access code validation and the requests for later callbacks currently have no response specified, only that it is supposed to be a HTTP 200 (in contrast to an error code). Is this acceptable, or should specific responses be specified?
The text was updated successfully, but these errors were encountered: