package
0.0.0-20240910131244-13d20f98e541
Repository: https://github.com/redhatinsights/edge-api.git
Documentation: pkg.go.dev

# Functions

NewBadRequest creates a new BadRequest.
NewFeatureNotAvailable creates a new NewFeatureNotAvailable.
NewForbidden creates a new Forbidden API error.
NewInternalServerError creates a new InternalServerError.
NewNotFound creates a new NotFound.
NewServiceUnavailable creates a new ServiceUnavailable API error.

# Constants

FeatureNotAvailableDefaultMessage the message used by default for FeatureNotAvailable API error.
ForbiddenDefaultMessage the message used by default for Forbidden API error.
ServiceUnavailableDefaultMessage the message used by default for Service Unavailable API error.

# Structs

BadRequest defines a error when the client's input generates an error.
FeatureNotAvailable defines a error when the feature is toggled off via feature flags.
Forbidden defines an error for whenever access is forbidden.
InternalServerError defines a generic error for Edge API.
NotFound defines a error for whenever an entity is not found in the database.
ServiceUnavailable defines an error for whenever service is unavailable.

# Interfaces

APIError defines a type for all errors returned by edge api.