package
0.0.0-20201106104914-e99cc0b83bb6
Repository: https://github.com/ozonep/drone.git
Documentation: pkg.go.dev

# Functions

BadRequest writes the json-encoded error message to the response with a 400 bad request status code.
BadRequestf writes the json-encoded error message to the response with a 400 bad request status code.
ErrorCode writes the json-encoded error message to the response.
Forbidden writes the json-encoded error message to the response with a 403 forbidden status code.
InternalError writes the json-encoded error message to the response with a 500 internal server error.
InternalErrorf writes the json-encoded error message to the response with a 500 internal server error.
JSON writes the json-encoded error message to the response with a 400 bad request status code.
NotFound writes the json-encoded error message to the response with a 404 not found status code.
NotFoundf writes the json-encoded error message to the response with a 404 not found status code.
NotImplemented writes the json-encoded error message to the response with a 501 not found status code.
Unauthorized writes the json-encoded error message to the response with a 401 unauthorized status code.

# Variables

ErrForbidden is returned when user access is forbidden.
ErrInvalidToken is returned when the api request token is invalid.
ErrNotFound is returned when a resource is not found.
ErrNotImplemented is returned when an endpoint is not implemented.
ErrUnauthorized is returned when the user is not authorized.