Represents a custom exception for API-related errors. This class extends the built-in Error class and includes additional functionality for handling HTTP status codes.
ApiException
The error message that describes the exception.
The HTTP status code associated with the error.
Optional
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Create .stack property on a target object
Represents a custom exception for API-related errors. This class extends the built-in Error class and includes additional functionality for handling HTTP status codes.
ApiException
Param: message
The error message that describes the exception.
Param: status
The HTTP status code associated with the error.