Versions in this module Expand all Collapse all v0 v0.2.4 May 27, 2021 v0.2.3 May 24, 2021 Changes in this version + type Error struct + Error error + Message string + StatusCode StatusCode + func NewError(statusCode StatusCode, message string) *Error + func NewErrorWithErr(statusCode StatusCode, message string, error error) *Error + func NewErrorf(statusCode StatusCode, message string, args ...interface{}) *Error + func NewInternalErrorWithErr(message string, err error) *Error + type StatusCode int + const StatusCode_Accepted + const StatusCode_AlreadyReported + const StatusCode_BadGateway + const StatusCode_BadRequest + const StatusCode_Conflict + const StatusCode_Continue + const StatusCode_Created + const StatusCode_Empty + const StatusCode_ExpectationFailed + const StatusCode_FailedDependency + const StatusCode_Forbidden + const StatusCode_Found + const StatusCode_GatewayTimeout + const StatusCode_Gone + const StatusCode_HTTPVersionNotSupported + const StatusCode_IMUsed + const StatusCode_InsufficientStorage + const StatusCode_InternalServerError + const StatusCode_LengthRequired + const StatusCode_Locked + const StatusCode_LoopDetected + const StatusCode_MethodNotAllowed + const StatusCode_MisdirectedRequest + const StatusCode_MovedPermanently + const StatusCode_MultiStatus + const StatusCode_MultipleChoices + const StatusCode_NetworkAuthenticationRequired + const StatusCode_NoContent + const StatusCode_NonAuthoritativeInformation + const StatusCode_NotAcceptable + const StatusCode_NotExtended + const StatusCode_NotFound + const StatusCode_NotImplemented + const StatusCode_NotModified + const StatusCode_OK + const StatusCode_PartialContent + const StatusCode_PayloadTooLarge + const StatusCode_PaymentRequired + const StatusCode_PermanentRedirect + const StatusCode_PreconditionFailed + const StatusCode_PreconditionRequired + const StatusCode_ProxyAuthenticationRequired + const StatusCode_RangeNotSatisfiable + const StatusCode_RequestHeaderFieldsTooLarge + const StatusCode_RequestTimeout + const StatusCode_ResetContent + const StatusCode_SeeOther + const StatusCode_ServiceUnavailable + const StatusCode_TemporaryRedirect + const StatusCode_TooManyRequests + const StatusCode_URITooLong + const StatusCode_Unauthorized + const StatusCode_UnprocessableEntity + const StatusCode_UnsupportedMediaType + const StatusCode_UpgradeRequired + const StatusCode_UseProxy + const StatusCode_VariantAlsoNegotiates