Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPStatus ¶
HTTPStatus returns the HTTP status included in err. If err is nil, this function returns 0. If err is non-nil, and does not include an HTTP status, a default value of net/http.StatusInternalServerError is returned.
func WithHTTPStatus ¶
WithHTTPStatus returns an error with the given HTTP status code. If err is nil, this function returns nil. If err is non-nil, and does not include an HTTP status, a new error is returned with the given status code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.