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

Document that 3xx status codes are errors #1298

Merged
merged 2 commits into from
Oct 18, 2017

Conversation

mickeyreiss-visor
Copy link
Contributor

According to the discussion in #283 as well as the code in the latest release, 3xx responses are considered errors by default.

This PR increases clarity about this point in the docs.

@kornelski
Copy link
Contributor

That is not quite accurate. 3xx by default are considered redirects and don't cause errors. They become errors only in non-default case where you disable/limit number of redirects.

@mickeyreiss-visor
Copy link
Contributor Author

Ah. In that case, what would be a good way to document the behavior for 304 Not modified?

@kornelski
Copy link
Contributor

Oh, I've forgotten about that one. Yes, it is an error indeed (we're unable to get its body).

Perhaps clarify with "non-redirecting 3xx"

@mickeyreiss-visor
Copy link
Contributor Author

I pushed another version of the copy. Please take a look. ✍️ 👀

@kornelski kornelski merged commit cf98d3b into ladjs:master Oct 18, 2017
@kornelski
Copy link
Contributor

That's good. Thank you.

@mickeyreiss-visor mickeyreiss-visor deleted the patch-1 branch January 10, 2018 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants