Skip to content

The documentation doesn't clarify if the promise api throws if status code is not 4xx or 5xx #1618

Answered by szmarczak
quesurifn asked this question in Q&A
Discussion options

You must be logged in to vote

Determines if a got.HTTPError is thrown for unsuccessful responses.

https://httpstatuses.com/

4×× Client Error
5×× Server Error

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sindresorhus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1570 on February 17, 2021 11:52.