You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a sentence about the default behavior of the rejected status code.
"the default behavior is to reject every response that returns with a status code that falls out of the range of 2xx and treat it as an error."
and make a small addition to the validateStatus header, to explain what the default condition.
Using the validateStatus config option, you can override the default condition (status >= 200 && status < 300) and define HTTP code(s) that should throw an error.
Relevant File(s)
READEME.md
The text was updated successfully, but these errors were encountered:
Section/Content To Improve
https://github.com/relbns/axios#handling-errors
Suggested Improvement
add a sentence about the default behavior of the rejected status code.
"the default behavior is to reject every response that returns with a status code that falls out of the range of 2xx and treat it as an error."
and make a small addition to the validateStatus header, to explain what the default condition.
Using the
validateStatus
config option, you can override the default condition (status >= 200 && status < 300) and define HTTP code(s) that should throw an error.Relevant File(s)
The text was updated successfully, but these errors were encountered: