Documentation ¶
Index ¶
- type BadRequestError
- type ConflictError
- type ErrorResponse
- type ForbiddenError
- type InvalidAuthTokenError
- type NotAcceptableError
- type NotFoundError
- type RawHTTPStatusError
- type RequestError
- type SSLValidationHostnameError
- type UnauthorizedError
- type UnexpectedResponseError
- type UnverifiedServerError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadRequestError ¶
type BadRequestError struct {
Message string `json:"error"`
}
func (BadRequestError) Error ¶
func (e BadRequestError) Error() string
type ConflictError ¶
type ConflictError struct {
Message string `json:"error"`
}
func (ConflictError) Error ¶
func (e ConflictError) Error() string
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"error"`
}
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
type ForbiddenError ¶
type ForbiddenError struct {
Message string `json:"error"`
}
func (ForbiddenError) Error ¶
func (e ForbiddenError) Error() string
type InvalidAuthTokenError ¶
type InvalidAuthTokenError struct {
Message string
}
InvalidAuthTokenError is returned when the client has an invalid authorization header.
func (InvalidAuthTokenError) Error ¶
func (e InvalidAuthTokenError) Error() string
type NotAcceptableError ¶
type NotAcceptableError struct {
Message string `json:"error"`
}
func (NotAcceptableError) Error ¶
func (e NotAcceptableError) Error() string
type NotFoundError ¶
type NotFoundError struct {
Message string
}
NotFoundError wraps a generic 404 error.
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type RawHTTPStatusError ¶
RawHTTPStatusError represents any response with a 4xx or 5xx status code.
func (RawHTTPStatusError) Error ¶
func (r RawHTTPStatusError) Error() string
type RequestError ¶
type RequestError struct {
Err error
}
RequestError represents a generic error encountered while performing the HTTP request. This generic error occurs before a HTTP response is obtained.
func (RequestError) Error ¶
func (e RequestError) Error() string
type SSLValidationHostnameError ¶
type SSLValidationHostnameError struct {
Message string
}
SSLValidationHostnameError replaces x509.HostnameError when the server has SSL certificate that does not match the hostname.
func (SSLValidationHostnameError) Error ¶
func (e SSLValidationHostnameError) Error() string
type UnauthorizedError ¶
type UnauthorizedError struct {
}func (UnauthorizedError) Error ¶
func (e UnauthorizedError) Error() string
type UnexpectedResponseError ¶
type UnexpectedResponseError struct { ErrorResponse RequestIDs []string ResponseCode int }
UnexpectedResponseError is returned when the client gets an error that has not been accounted for.
func (UnexpectedResponseError) Error ¶
func (e UnexpectedResponseError) Error() string
type UnverifiedServerError ¶
type UnverifiedServerError struct {
URL string
}
UnverifiedServerError replaces x509.UnknownAuthorityError when the server has SSL but the client is unable to verify it's certificate
func (UnverifiedServerError) Error ¶
func (UnverifiedServerError) Error() string