Documentation
¶
Index ¶
- type APIError
- func NewBadRequestError(message string, err error) *APIError
- func NewConflictError(message string, err error) *APIError
- func NewForbiddenError(message string, err error) *APIError
- func NewInternalServerError(message string, err error) *APIError
- func NewNotFoundError(message string, err error) *APIError
- func NewNotImplementedError(message string, err error) *APIError
- func NewValidationError(message string, err error) *APIError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
APIError represents an API error with HTTP status code and message
func NewBadRequestError ¶
NewBadRequestError creates a new bad request error
func NewConflictError ¶
func NewForbiddenError ¶
func NewInternalServerError ¶
NewInternalServerError creates a new internal server error
func NewNotFoundError ¶
NewNotFoundError creates a new not found error
func NewNotImplementedError ¶
func NewValidationError ¶
NewValidationError creates a new validation error
func (*APIError) StatusCode ¶
StatusCode returns the HTTP status code
Click to show internal directories.
Click to hide internal directories.