Documentation
¶
Index ¶
- func BadRequest(id, format string, a ...interface{}) error
- func Conflict(id, format string, a ...interface{}) error
- func Forbidden(id, format string, a ...interface{}) error
- func InternalServerError(id, format string, a ...interface{}) error
- func MethodNotAllowed(id, format string, a ...interface{}) error
- func NewHttpError(id, detail string, code int32) error
- func NotFound(id, format string, a ...interface{}) error
- func PanicError(err error)
- func Timeout(id, format string, a ...interface{}) error
- func Unauthorized(id, format string, a ...interface{}) error
- type HttpError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
BadRequest generates a 400 error.
func InternalServerError ¶
InternalServerError generates a 500 error.
func MethodNotAllowed ¶
MethodNotAllowed generates a 405 error.
func NewHttpError ¶
New generates a custom error.
func Unauthorized ¶
Unauthorized generates a 401 error.
Types ¶
Click to show internal directories.
Click to hide internal directories.