Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidInput signals malformed or invalid caller input (maps to 400). ErrInvalidInput = errors.New("invalid input") // ErrNotFound signals a requested resource does not exist or is // unavailable (maps to 404). ErrNotFound = errors.New("not found") )
Semantic error categories returned by the domain handlers. They carry no HTTP knowledge — `statusFor“ is the single place that maps them to status codes — so the same errors could drive a non-HTTP transport (e.g. a consumer) unchanged.
View Source
var ErrMethodNotAllowed = errors.New("method not allowed")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.