Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Err error `json:"-"` // low-level runtime error HTTPStatusCode int `json:"-"` // http response status code Status string `json:"Status,omitempty"` // user-level status message Code int64 `json:"Code,omitempty"` // application-specific error code Error string `json:"Error,omitempty"` // application-level error message, for debugging }
ErrorResponse renderer type for handling all sorts of errors.
func (*ErrorResponse) Render ¶
func (e *ErrorResponse) Render(w http.ResponseWriter, r *http.Request) error
Render sets the application-specific error code in AppCode.
Click to show internal directories.
Click to hide internal directories.