Documentation ¶
Index ¶
- type HTTPError
- func BadRequest(format string, args ...interface{}) *HTTPError
- func Forbidden(format string, args ...interface{}) *HTTPError
- func InternalError(format string, args ...interface{}) *HTTPError
- func NotAuthorized(format string, args ...interface{}) *HTTPError
- func NotFound(format string, args ...interface{}) *HTTPError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPError ¶
func BadRequest ¶
BadRequest is a helper to return a 400 error
func InternalError ¶ added in v1.5.1
Internal is a helper to return a 404 error
func NotAuthorized ¶
NotAuthorized is a helper to return a 401 error
Click to show internal directories.
Click to hide internal directories.