Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerError = New(500, "ServerError",
"There was an issue on the server side. Please report to us or try again later.")
ServerError always the same
Functions ¶
func IsClientError ¶
Types ¶
type Error ¶
type Error struct { Key string `json:"error"` Message string `json:"message"` // contains filtered or unexported fields }
Error custom struct
func ParseResp ¶
ParseResp can parse http response, if there is a error, it would read and close the body for error messages.
Click to show internal directories.
Click to hide internal directories.