# Functions
EqualCode return true if error underlying code equal target code.
FromGRPCCode converts a gRPC error code into the corresponding HTTP response status.
New new Error.
NewBadGateway new bad gateway error that is mapped to 502 response.
NewBadRequest new BadRequest error that is mapped to a 400 response.
NewClientClosed new ClientClosed error that is mapped to a HTTP 499 response.
NewConflict new Conflict error that is mapped to a 409 response.
Newf new Error.
NewForbidden new Forbidden error that is mapped to a 403 response.
NewGatewayTimeout new GatewayTimeout error that is mapped to a HTTP 504 response.
NewInternalServer new internal server error that is mapped to 500 response.
NewMethodNotAllowed new method not allowed error that is mapped to a 405 response.
ErrNotFound new NotFound error that is mapped to a 404 response.
NewNotImplemented new not implemented error that is mapped to 501 response.
NewRequestTimeout new request timeout error that is mapped to a 408 response.
NewServiceUnavailable new ServiceUnavailable error that is mapped to a HTTP 503 response.
NewUnauthorized new Unauthorized error that is mapped to a 401 response.
Parse parser error is `Error`, if not `Error`, new `Error` with code 500 and warp the err.
ToGRPCCode converts an HTTP error code into the corresponding gRPC response status.
WithCause set cause error.
WithError inner `errors.New`.
WithErrorf inner `fmt.Errorf`.
WithMessage modifies the message.
WithMessagef modifies the message.
WithMetadata add metadata to the error.
# Constants
ClientClosed is non-standard http status code, which defined by nginx.
# Variables
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author