# Functions
As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.
CastToHapiError turns normal error into HapiError.
Cause returns the underlying cause of the error, if possible.
Is reports whether any error in err's chain matches target.
New creates a NoType hapiError.
Newf creates a NoType hapiError with formatted message.
SetMessage will set the Message of a HapiError so that you can return a detailed message for the client when responding.
Unwrap returns the result of calling the Unwrap method on err, if err's type contains an Unwrap method returning error.
Wrap an error with a string.
Wrapf an error with a format string.
# Constants
BadRequest 400 error.
Forbidden 403 error.
ImATeapot 418 error.
InternalServerError 500 error.
NotFound 404 error.
NoType error.
TooLarge 413 error.
Unauthorized 401 error.
# Structs
HapiError is a custom error that helps deliver status codes from deeper in code to your application layer.
# Type aliases
ErrorType is the type of an error.