Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BadRequest = &Error{ Code: "bad_request", Message: "we cannot process your request", Status: response.HTTPStatusForbidden, } Forbidden = &Error{ Code: "forbidden", Message: "you do not have an access to the resource", Status: response.HTTPStatusForbidden, } NotFound = &Error{ Code: "not_found", Message: "the requested resource is not found on the server", Status: response.HTTPStatusNotFound, } ServerError = &Error{ Code: "internal_server_error", Message: "unexpected server error occurred. please try again later.", Status: response.HTTPStatusInternalServerError, } )
General API errors
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.