Skip to content

How to throw 404 error. #2289

Answered by sindresorhus
meotimdihia asked this question in Q&A

You must be logged in to vote

You can import HTTPError from Got and throw that.

Replies: 1 comment 3 replies

You must be logged in to vote
3 replies
@meotimdihia

meotimdihia Aug 7, 2023
Author Sponsor

@sindresorhus

Answer selected by meotimdihia
@zakkor

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