apierr

package
v0.0.172 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotImplemented = APIErrorCode{500, "NOT_IMPLEMENTED"}
	InternalError  = APIErrorCode{500, "INTERNAL_ERROR"}
	Panic          = APIErrorCode{500, "PANIC"}

	BindFailURI      = APIErrorCode{400, "BINDFAIL_URI"}
	BindFailQuery    = APIErrorCode{400, "BINDFAIL_QUERY"}
	BindFailJSON     = APIErrorCode{400, "BINDFAIL_JSON"}
	BindFailFormData = APIErrorCode{400, "BINDFAIL_FORMDATA"}

	Unauthorized = APIErrorCode{401, "UNAUTHORIZED"}
	AuthFailed   = APIErrorCode{401, "AUTH_FAILED"}
)

Functions

This section is empty.

Types

type APIErrorCode

type APIErrorCode struct {
	HTTPStatusCode int
	Key            string
}

Jump to

Keyboard shortcuts

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