Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendError ¶
func SendError(w http.ResponseWriter, err error)
SendError tries to parse the HTTP status code from the specified error, envelops it into an error array as the error payload and returns the code and payload to the response. And the error is logged as well
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.