Documentation
¶
Overview ¶
Package errors provides constructors and wrappers for http-aware errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewError ¶
NewError constructs a new error with the supplied status code and message.
func StatusCode ¶
StatusCode extracts the HTTP status code associated with an error, falling back to 500 Internal Server Error if none has been specified.
Types ¶
This section is empty.
Source Files
¶
- errors.go
Click to show internal directories.
Click to hide internal directories.