itserrors

package
v0.0.0-...-55babe7 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound         = Error{Code: "CLIENT_0001", Message: "Not found", HTTPStatus: 404}
	ErrInvalidSignature = Error{Code: "CLIENT_0002", Message: "Invalid signature", HTTPStatus: 400}
)

Functions

This section is empty.

Types

type Error

type Error struct {
	Code       string `json:"code"`
	Message    string `json:"message"`
	HTTPStatus int    `json:"http_status"`
}

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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