Create a new Boom error
human friendly error message
unique identifier for this particular occurrence of the problem
HTTP Standard error code
enhanced error options
Error name (type)
Optional override for formatting stack traces
Cause source of error
Return the info object for this error
Boom error
Links that leads to further details about this particular occurrence of the problem. A link MUST be represented as either:
Object with the key information of the requested resource in the REST API context
Object with the key information of the requested resource in the REST API context
Boom error code
Return the unique identifier associated to this instance
Transform joi Validation error in a Boom error
ValidationError
from a Joi validation process
Return APIError in JSON format
Return a string formatted as name:message
Create .stack property on a target object
Generated using TypeDoc
Improved error handling in REST-API interfaces
Boom helps us with error responses (HTTP Codes 3XX-5XX) within our REST-API interface by providing us with some tools:
In addition, in combination with the Multi error types, errors in validation processes, and Crash, standard application errors, it allows a complete management of the different types of errors in our backend.