package
0.9.1
Repository: https://github.com/things-go/dyn.git
Documentation: pkg.go.dev

# Functions

Code returns the http code for a error.
ErrBadRequest new BadRequest error that is mapped to a 400 response.
ErrBadRequestf new BadRequest error that is mapped to a 400 response.
ErrClientClosed new ClientClosed error that is mapped to a HTTP 499 response.
ErrClientClosed new ClientClosed error that is mapped to a HTTP 499 response.
ErrConflict new Conflict error that is mapped to a 409 response.
ErrConflictf new Conflict error that is mapped to a 409 response.
ErrForbidden new Forbidden error that is mapped to a 403 response.
ErrForbiddenf new Forbidden error that is mapped to a 403 response.
ErrGatewayTimeout new GatewayTimeout error that is mapped to a HTTP 504 response.
ErrGatewayTimeoutf new GatewayTimeout error that is mapped to a HTTP 504 response.
No description provided by the author
No description provided by the author
ErrNotFound new NotFound error that is mapped to a 404 response.
ErrNotFoundf new NotFound error that is mapped to a 404 response.
No description provided by the author
ErrServiceUnavailable new ServiceUnavailable error that is mapped to a HTTP 503 response.
ErrServiceUnavailablef new ServiceUnavailable error that is mapped to a HTTP 503 response.
ErrUnauthorized new Unauthorized error that is mapped to a 401 response.
ErrUnauthorized new Unauthorized error that is mapped to a 401 response.
No description provided by the author
FromGRPCCode converts a gRPC error code into the corresponding HTTP response status.
IsBadRequest determines if err is an error which indicates a BadRequest error.
IsClientClosed determines if err is an error which indicates a IsClientClosed error.
IsConflict determines if err is an error which indicates a Conflict error.
IsForbidden determines if err is an error which indicates a Forbidden error.
IsGatewayTimeout determines if err is an error which indicates a GatewayTimeout error.
No description provided by the author
IsNotFound determines if err is an error which indicates an NotFound error.
IsServiceUnavailable determines if err is an error which indicates a Unavailable error.
IsUnauthorized determines if err is an error which indicates a Unauthorized error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ToGRPCCode converts an HTTP error code into the corresponding gRPC response status.

# Constants

ClientClosed is non-standard http status code, which defined by nginx.

# Variables

No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author