errors

package
v0.0.0-...-6375eca Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnauthorized = Unauthorized("unauthorized")
)

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	// contains filtered or unexported fields
}

func BadRequest

func BadRequest(message string) HTTPError

func Conflict

func Conflict(message string) HTTPError

func Forbidden

func Forbidden(message string) HTTPError

func InternalServerError

func InternalServerError(message string) HTTPError

func New

func New(code int, message string) HTTPError

func NotFound

func NotFound(message string) HTTPError

func Unauthorized

func Unauthorized(message string) HTTPError

func (HTTPError) Error

func (e HTTPError) Error() string

func (HTTPError) StatusCode

func (e HTTPError) StatusCode() int

Jump to

Keyboard shortcuts

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