Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPError ¶
type HTTPError struct {
// contains filtered or unexported fields
}
HTTPError represents an HTTP error which contains potential status code. For API layer, daemon side should return error message and using correct status code to construct response when an error happens in handling requests.
func NewHTTPError ¶
NewHTTPError returns a brand new HTTPError with input message and status code
Click to show internal directories.
Click to hide internal directories.