util

package
v2.2.8-ent-rc2+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPErrorCode

func GetHTTPErrorCode(httpStatus int) string

func ReturnHTTPError

func ReturnHTTPError(w http.ResponseWriter, r *http.Request, httpStatus int, errorMessage string)

ReturnHTTPError handles sending out Error response TODO Use the Norman API error framework instead

Types

type AuthError

type AuthError struct {
	Type    string `json:"type"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

AuthError structure contains the error resource definition

Jump to

Keyboard shortcuts

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