Documentation ¶
Overview ¶
Package constcup provides various constants to be imported in your projects.
Index ¶
Constants ¶
View Source
const ( ErrInvalidData = "Invalid Data" // Used when the provided data is invalid ErrDataNotFound = "Data Not Found" // Used when the requested data could not be found ErrDataExists = "Data Exists" // Used when the data already exists ErrInvalidID = "Invalid ID" // Used when the provided ID is invalid ErrInvalidEndpoint = "Invalid Endpoint" // Used when the requested endpoint is invalid ErrInvalidMethod = "Invalid Method" // Used when the requested method is invalid ErrForbidden = "Forbidden" // Used when the request is forbidden ErrInternalServerError = "Internal Server Error" // Used when an internal server error occurs ErrBadGateway = "Bad Gateway" // Used when a bad gateway error occurs ErrGatewayTimeout = "Gateway Timeout" // Used when a gateway timeout error occurs ErrTooManyRequests = "Too Many Requests" // Used when too many requests are made ErrRequestTimeout = "Request Timeout" // Used when a request timeout error occurs ErrNotFound = "Not Found" // Used when the requested resource could not be found ErrMethodNotAllowed = "Method Not Allowed" // Used when the requested method is not allowed ErrConflict = "Conflict" // Used when a conflict occurs ErrGone = "Gone" // Used when the requested resource is gone ErrLengthRequired = "Length Required" // Used when the length is required ErrPreconditionFailed = "Precondition Failed" // Used when a precondition fails ErrWritingResponse = "Error Writing Response" // Used when an error occurs while writing the response ErrParsingRequest = "Error Parsing Request" // Used when an error occurs while parsing the request ErrSavingData = "Error Saving Data" // Used when an error occurs while saving data ErrUpdatingData = "Error Updating Data" // Used when an error occurs while updating data ErrDeletingData = "Error Deleting Data" // Used when an error occurs while deleting data ErrCreatingRequest = "Error Creating Request" // Used when an error occurs while creating a request ErrSendingRequest = "Error Sending Request" // Used when an error occurs while sending a request ErrReadingResponse = "Error Reading Response" // Used when an error occurs while reading a response ErrUnmarshallingData = "Error Unmarshalling Data" // Used when an error occurs while unmarshalling data )
Error constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.