Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqErr ¶
type ReqErr struct { // Status of the call http.Status* Status int // Msg is an optional message given more detailed // information on failture (if http.StatusBadeRequest -> tell me what is wrong) Msg string // Err is optional if Status is >= http.StatusInternalServerError Err error }
ReqErr contain all information required for an api to return a usefull response to the client
Click to show internal directories.
Click to hide internal directories.