Class: AppError

AppError(message, statusCodeopt)

Application error with an HTTP status code. Used to distinguish validation/client errors (400) from server errors (500).

Constructor

new AppError(message, statusCodeopt)

Parameters:
Name Type Attributes Default Description
message string Human-readable error description
statusCode number <optional>
400 HTTP status code to return
Source:

Classes

AppError