constcup

package
v1.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 0 Imported by: 0

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
	ErrUnauthorized        = "Unauthorized Attempt"     // Used when an unauthorized attempt is made
	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
	ErrServiceUnavailable  = "Service Unavailable"      // Used when the service is unavailable
	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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL