Documentation
¶
Index ¶
- func SendHTTPBadRequest(rw http.ResponseWriter, code Code, err error)
- func SendHTTPInternalServerError(rw http.ResponseWriter, code Code, err error)
- func SendHTTPStatusError(rw http.ResponseWriter, code Code, err error, statusCode int)
- func SendUnknownError(rw http.ResponseWriter, err error)
- type Code
- type Group
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendHTTPBadRequest ¶
func SendHTTPBadRequest(rw http.ResponseWriter, code Code, err error)
SendHTTPBadRequest sends http status code BAD REQUEST to response with given error body
func SendHTTPInternalServerError ¶
func SendHTTPInternalServerError(rw http.ResponseWriter, code Code, err error)
SendHTTPInternalServerError sends http status code INTERNAL SERVER ERROR to response with given error body
func SendHTTPStatusError ¶
func SendHTTPStatusError(rw http.ResponseWriter, code Code, err error, statusCode int)
SendHTTPStatusError sends given http status code to response with error body
func SendUnknownError ¶
func SendUnknownError(rw http.ResponseWriter, err error)
SendUnknownError sends unnknown/default error through response with given error body
Types ¶
Click to show internal directories.
Click to hide internal directories.