Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct { StatusCode int // HTTP status code ErrorCode string // Custom error code Message string // Error message }
APIError is a structure for storing API error information
func BadRequestError ¶
BadRequestError creates an APIError instance representing a BadRequest
func InternalServerError ¶
InternalServerError creates an APIError instance representing an InternalServer error
func NewAPIError ¶
NewAPIError creates an instance of APIError
func NotFoundError ¶
NotFoundError creates an APIError instance representing a NotFound
func UnauthorizedError ¶
UnauthorizedError creates an APIError instance representing an Unauthorized
Click to show internal directories.
Click to hide internal directories.