Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrFailedDependency ¶
func ErrFailedDependency(w http.ResponseWriter, err error, msg string)
func ErrNotFound ¶
func ErrNotFound(w http.ResponseWriter, err error, msg string)
func ErrUnauthorized ¶
func ErrUnauthorized(w http.ResponseWriter, url string)
func ErrUnprocessable ¶
func ErrUnprocessable(w http.ResponseWriter, err error, msg string)
Types ¶
type ErrResponse ¶
type ErrResponse struct { Err string `json:"error,omitempty"` // low-level error HTTPStatusCode int `json:"-"` // http response status code StatusText string `json:"status"` // user-level status message Redirect string `json:",omitempty"` }
ErrResponse presents error information to JSON API user.
Click to show internal directories.
Click to hide internal directories.