package
0.0.0-20250217184512-07a1dd74159b
Repository: https://github.com/nickbryan/httputil.git
Documentation: pkg.go.dev

# Functions

BadRequest creates a DetailedError for bad request errors.
ConstraintViolation creates a DetailedError for constraint violation errors.
Forbidden creates a DetailedError for forbidden errors.
NotFound creates a DetailedError for not found errors.
ResourceExists creates a DetailedError for duplicate resource errors.
ServerError creates a DetailedError for internal server errors.
Unauthorized creates a DetailedError for unauthorized errors.

# Constants

DefaultErrorDocumentationLocation is the default URL pointing to the documentation for Problem Details format.

# Variables

nolint:gochecknoglobals // Global var improves API without degrading user experience.

# Structs

DetailedError encapsulates the fields required to respond with an error in accordance with RFC 9457 (Problem Details for HTTP APIs).
Property represents a specific property that caused a violation constraint.