Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
BadRequest renders a HTTP 400 bad request response
func ServerError ¶
ServerError renders a HTTP 500 error response
Types ¶
type BadRequestResponse ¶ added in v0.8.3
type BadRequestResponse = ErrorResponse
swagger:response BadRequestResponse
type ErrorResponse ¶ added in v0.8.3
type ErrorResponse struct { Status int `json:"status"` Error interface{} `json:"error"` }
Click to show internal directories.
Click to hide internal directories.