Documentation
¶
Overview ¶
Package operr provides marker errors that classify operation failures so HTTP handlers can map them to status codes with errors.Is instead of matching message strings (which silently broke whenever a message was reworded). The markers never appear in the error text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") // a referenced resource does not exist -> 404 ErrConflict = errors.New("conflict") // the resource already exists / is in use -> 409 ErrInvalid = errors.New("invalid input") // the request cannot be satisfied as specified -> 400 ErrForbidden = errors.New("forbidden") // the action is refused by policy -> 403 )
Functions ¶
func Forbiddenf ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.