Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBadRequestError ¶ added in v1.11.0
NewBadRequestError creates a new API error that has the 400 HTTP status code associated to it.
func NewErrorWithStatusCode ¶ added in v1.11.0
NewErrorWithStatusCode allows you to associate a specific HTTP Status Code to an error. The Server will take that code and set it as the response status.
func NewRequestConflictError ¶ added in v1.11.0
NewRequestConflictError creates a new API error that has the 409 HTTP status code associated to it.
func NewRequestForbiddenError ¶ added in v1.12.0
NewRequestForbiddenError creates a new API error that has the 403 HTTP status code associated to it.
func NewRequestNotFoundError ¶ added in v1.11.0
NewRequestNotFoundError creates a new API error that has the 404 HTTP status code associated to it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.