util

package
v2.2.1-cn+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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