HTTPError class This class is used to represent an HTTP error.
throw new HTTPError(404, 'Not Found'); Copy
throw new HTTPError(404, 'Not Found');
Constructor for HTTPError
The HTTP status code
The HTTP status text
The name of the error(HTTPError)
HTTPError class This class is used to represent an HTTP error.
Example