Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccessRestricted = Forbidden("access restricted") EmptyBody = BadRequest("empty body") )
Functions ¶
This section is empty.
Types ¶
type StatusError ¶
func BadRequest ¶
func BadRequest(message string) *StatusError
func Forbidden ¶
func Forbidden(message string) *StatusError
func InternalServiceError ¶
func InternalServiceError(message string) *StatusError
func NotFound ¶
func NotFound(message string) *StatusError
func Unauthorized ¶
func Unauthorized(message string) *StatusError
func (*StatusError) Error ¶
func (se *StatusError) Error() string
func (*StatusError) StatusCode ¶
func (se *StatusError) StatusCode() int
Click to show internal directories.
Click to hide internal directories.