Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HeaderContentType constant HeaderContentType = "Content-Type" // MIMEApplicationJSON constant MIMEApplicationJSON = "application/json" // MIMEApplicationJSONCharsetUTF8 constant MIMEApplicationJSONCharsetUTF8 = MIMEApplicationJSON + "; " + charsetUTF8 // HeaderXContentTypeOptions constant HeaderXContentTypeOptions = "X-Content-Type-Options" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPError ¶
type HTTPError struct { Code int Message interface{} Internal error // Stores the error returned by an external dependency }
HTTPError represents an error that occurred while handling a request.
func NewHTTPError ¶
NewHTTPError creates a new HTTPError instance.
func (*HTTPError) SetInternal ¶
SetInternal sets error to HTTPError.Internal
Click to show internal directories.
Click to hide internal directories.