httperror

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFoundHandler

func NotFoundHandler(w http.ResponseWriter, r *http.Request)

Types

type Err503Handler

type Err503Handler struct {
	ACLName string
}

func (Err503Handler) ServeHTTP

func (eh Err503Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ErrorDetails

type ErrorDetails struct {
	Code            string `json:"code"`
	Message         string `json:"message"`
	MessageTitle    string `json:"message_title"`
	MessageSeverity string `json:"message_severity"`
}

type WeaverResponse

type WeaverResponse struct {
	Errors []ErrorDetails `json:"errors"`
}

Jump to

Keyboard shortcuts

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