Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestErr ¶
type RestErr struct { Message string `json:"message"` Status int `json:"status"` Code string `json:"code"` }
RestErr : "common"
func NewBadRequestError ¶
NewBadRequestError : check the error is for bad request status
func NewInternalServerError ¶
NewInternalServerError : check the error is caused by the server
func NewNotFoundError ¶
NewNotFoundError : check the error is for bad request status
Click to show internal directories.
Click to hide internal directories.