xhttp

package
v0.0.0-...-8b3f6e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL