-
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
Do not signal error on successful non-200
HTTP status codes
#17
Comments
200
HTTP status codes
Hi Joseph, Yes, this is an artifact of The question now is how to handle other 2xx codes. I guess we could simply treat them the same as 200, and clients that need to handle specific 2xx codes differently could use What do you think? Thanks. |
That sounds great! I vote for this :) Once this is implemented, it would be great if this is noted in the README with an example of how to check for the status code! |
I like this simple solution. If at some point it seems appropriate for |
Thank you! |
Going to reopen this to remind me to update the docs as mentioned. |
Done. |
Currently,
plz.el
signalsplz-http-error
on anything besides a status 200 code. According to Mozilla, only status codes between 400-599 are errors.I was confused when I received a successful 201 status code and
plz.el
signaled an HTTP error.The text was updated successfully, but these errors were encountered: