validateStatus option not working. #4881
Answered
by
jasonsaayman
LuckyArdhika
asked this question in
Q&A
-
Im using NodeJS and Axios v0.27.02. I want to including 302 status code only for valid response and exclude other status code as an error, so im using validateStatus as decribed in the documentation, but my code didnt working as expected. My code:
I want to display OK, but the console show an error ERR_FR_TOO_MANY_REDIRECTS. |
Beta Was this translation helpful? Give feedback.
Answered by
jasonsaayman
Jul 27, 2022
Replies: 1 comment
-
302 is normally a redirect code, just for sanity I would suggest the API itself be changed else you are breaking a web standard. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jasonsaayman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
302 is normally a redirect code, just for sanity I would suggest the API itself be changed else you are breaking a web standard.