Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Err error
// http status code
Status status.Status
// custom error code
Code int
}
Error represents http response error, which is along with http status code, it used to decide how to show error message in response.
func BadRequest ¶
func InternalError ¶
func UnAuthorized ¶
Click to show internal directories.
Click to hide internal directories.