Documentation ¶ Index ¶ func New(status string, body io.Reader) error type HTTPError func (e *HTTPError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(status string, body io.Reader) error New returns an error that formats as the given text. Types ¶ type HTTPError ¶ type HTTPError struct { StatusCode int `json:"statusCode"` Status string Body string ParsedError string `json:"error"` ParsedMessage string `json:"message"` } HTTPError generates a structure error from an http response func (*HTTPError) Error ¶ func (e *HTTPError) Error() string Source Files ¶ View all Source files httperror.go Click to show internal directories. Click to hide internal directories.