Documentation ¶
Index ¶
- func BadRequest(c echo.Context, message string) (e error)
- func Conflict(c echo.Context, message string) (e error)
- func Forbidden(c echo.Context, message string) (e error)
- func GetHTTPResponseFromErr(c echo.Context, err error) (e error)
- func Gone(c echo.Context, message string) (e error)
- func HTTPError(c echo.Context, statusCode int, message string) (e error)
- func InternalServerError(c echo.Context, message string) (e error)
- func MethodNotAllowed(c echo.Context, message string) (e error)
- func NotFound(c echo.Context, message string) (e error)
- func NotImplemented(c echo.Context, message string) (e error)
- func Unauthorized(c echo.Context, message string) (e error)
- func UnsupportedMediaType(c echo.Context, message string) (e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
BadRequest response code (400) indicates that the server could not understand the request due to invalid syntax.
func Conflict ¶
Conflict response code (409) indicates a request conflict with current state of the server.
func Forbidden ¶
Forbidden response code (403) indicates that the server understood the request but refuses to authorize it.
func GetHTTPResponseFromErr ¶
GetHTTPResponseFromErr returns the mapped http error to the generic errors model.
func Gone ¶
Gone response code (410) indicates that access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.
func InternalServerError ¶
InternalServerError response code (500) indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
func MethodNotAllowed ¶
MethodNotAllowed response code (405) indicates that the request method is known by the server but is not supported by the target resource.
func NotFound ¶
NotFound response code (404) indicates that the server can't find the requested resource
func NotImplemented ¶
NotImplemented response code (501) indicates that the server does not support the functionality required to fulfill the request.
func Unauthorized ¶
Unauthorized response code (401) indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.
Types ¶
This section is empty.