Skip to content

How to throw 404 error. #2289

Answered by sindresorhus
meotimdihia asked this question in Q&A
Discussion options

You must be logged in to vote

You can import HTTPError from Got and throw that.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@meotimdihia
Comment options

@sindresorhus
Comment options

Answer selected by meotimdihia
@zakkor
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants