Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBadRequestError ¶
NewBadRequestError creates a new API error that has the 400 HTTP status code associated to it.
func NewErrorWithStatusCode ¶
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 ¶
NewRequestConflictError creates a new API error that has the 409 HTTP status code associated to it.
func NewRequestForbiddenError ¶
NewRequestForbiddenError creates a new API error that has the 403 HTTP status code associated to it.
func NewRequestNotFoundError ¶
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.