Documentation ¶
Index ¶
- Variables
- type HTTPError
- func BadRequest(message string) HTTPError
- func Conflict(message string) HTTPError
- func Forbidden(message string) HTTPError
- func InternalServerError(message string) HTTPError
- func New(code int, message string) HTTPError
- func NotFound(message string) HTTPError
- func Unauthorized(message string) HTTPError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)Functions ¶
This section is empty.
Types ¶
type HTTPError ¶
type HTTPError struct {
// contains filtered or unexported fields
}
func BadRequest ¶
func InternalServerError ¶
func Unauthorized ¶
func (HTTPError) StatusCode ¶
Click to show internal directories.
Click to hide internal directories.