Versions in this module Expand all Collapse all v1 v1.0.0 May 17, 2022 Changes in this version + const RequestIDHeader + func RetrieveSample(r io.ReadCloser) []byte + type Code string + const CodeConflict + const CodeEncodingError + const CodeForbidden + const CodeHTTPClientError + const CodeInvalidContentType + const CodeInvalidOperation + const CodeInvalidRequest + const CodeNotFound + const CodeRateLimitExceeded + const CodeRequestError + const CodeServerError + const CodeServerUnavailable + const CodeUnauthorized + const CodeUnknownError + const CodeValidationError + type Error struct + Code Code + Method string + Request []byte + RequestID string + Resource string + Response []byte + Source string + StatusCode int + func FromRequest(req *http.Request) *Error + func FromRequestAndSource(req *http.Request, code Code, src error) *Error + func FromResponse(req *http.Request, resp *http.Response, r io.ReadCloser) *Error + func FromSource(code Code, path, method, id string, src error) *Error + func (e *Error) Error() string