Create a new Boom error
human friendly error message
unique identifier for this particular occurrence of the problem
HTTP Standard error code
Optional
options: BoomOptionsenhanced error options
Error date
Error name (type)
Error subject, 'common'
as default
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:
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
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.