Replies: 1 comment
-
I went ahead and use the beforeError hook to check the status code and if that matched something we deemed to be valid we just added a flag on the error to be used downstream. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am migrating from axios to got and the
validateStatus
option is a breaking change. Is there a way to change what status codes are valid? I was looking at using got's hooks for this, but wanted to know if there is something you suggest?Beta Was this translation helpful? Give feedback.
All reactions