Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotFound = "NOT_FOUND" BadRequest = "BAD_REQUEST" InternalServerError = "INTERNAL_SERVER_ERROR" )
const will be used for the status of api handlers.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
APIError struct contains the code and message of error.
func NewAPIError ¶
NewAPIError returns the error type and error message.
Click to show internal directories.
Click to hide internal directories.