apierror

package
v1.0.0-beta.32 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AdminNotAuthorizedJSON = `{ "code":"error-admin-auth-on-user-endpoint", "message":"cannot call user's endpoints with admin authorization" }`
View Source
const CannotBindBodyJSON = `{"code":"error-bind-body-invalid", "message":"cannot bind request body"}`
View Source
const MissingAuthHeaderJSON = `{ "code":"error-unauthorized-auth-header-missing", "message":"missing auth header" }`

Variables

This section is empty.

Functions

func ExpectedJSON

func ExpectedJSON(code string, message string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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