Documentation ¶
Overview ¶
Package errors contains logic for making errors user-friendly at the API boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatusCode ¶
func NewInvalidArgumentError ¶
NewInvalidArgumentError returns an invalid argument error.
This will be mapped to a 400 error in the API.
func NewNotFoundError ¶
NewNotFoundError returns a not found error.
This will be mapped to a 404 error in the API.
func ServeMuxOption ¶
func ServeMuxOption(logger *slog.Logger) runtime.ServeMuxOption
ServeMuxOption returns a `runtime.ServeMuxOption` that makes errors user-friendly at the API boundary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.