httperror

package
v0.0.0-...-d625e3b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(message string) error

func Forbidden

func Forbidden(message string) error

func New

func New(statusCode int, message string) error

func NotFound

func NotFound(message string) error

func Unauthorized

func Unauthorized(message string) error

Types

type HTTPError

type HTTPError struct {
	StatusCode int
	Message    string
}

func (HTTPError) Error

func (e HTTPError) Error() string

Jump to

Keyboard shortcuts

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