Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPErrorHandler ¶ added in v0.2.0
func HTTPErrorHandler(err error, c echo.Context)
HTTPErrorHandler must be hooked to an echo server to render instances of HTTPError as JSON
Types ¶
type HTTPError ¶
HTTPError implements the Go error interface, and includes an HTTP response code. Any webapi endpoint can return an instance of HTTPError, and it will be rendered as JSON in the response.
func BadRequest ¶
func ServerError ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.