Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToHttpCode ¶
ToHttpCode returns a status code indicated by an HttpError or a default status if the error is not an HttpError instance
Types ¶
type HttpError ¶
type HttpError struct {
// contains filtered or unexported fields
}
HttpError represents an error that indicates an HTTP status
func NewFromError ¶ added in v0.9.0
func NewFromString ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.