Documentation ¶
Overview ¶
Package httperror provides HTTP serialization of application errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeFromText ¶
DecodeFromText decodes an error from plain text.
func DecodeKind ¶
DecodeKind maps an HTTP status code to an apperror.Kind.
func EncodeKind ¶
EncodeKind maps an apperror.Kind to an HTTP status code.
func EncodeToText ¶
func EncodeToText(w http.ResponseWriter, err error)
EncodeToText encodes an error into plain text. No further writes to the ResponseWriter w should happen after this function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.