Documentation
¶
Index ¶
- func BadImplementation(err error) error
- func BadRequest(message string, data map[string]interface{}) error
- func Forbidden(message string) error
- func NotFound(message string) error
- func RangeNotSatisfiable(message string, data map[string]interface{}) error
- func Unauthorized(message string) error
- type Error
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadImplementation ¶
BadImplementation returns a 500 Internal Server Error.
func BadRequest ¶
BadRequest returns 400 Bad Request.
func RangeNotSatisfiable ¶
RangeNotSatisfiable returns 416 Range Not Satisfiable.
Types ¶
type Error ¶
Error ..
func (Error) MarshalJSON ¶
MarshalJSON implements Marshaler and returns only e.Output.
Click to show internal directories.
Click to hide internal directories.