Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondFailed ¶
func RespondFailed(w http.ResponseWriter, err error)
RespondFailed returns a failed response to the client. It expects err to be of type *xerror.Error. If so, the returned error model is the Google Cloud APIs error model as declared in: https://google.aip.dev/193#error-response
Otherwise, the response is a generic 500 Internal Server Error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.