errors

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotFound             = "notFound"
	Unauthorized         = "unauthorized"
	InternalServerError  = "internalServerError"
	BodyParse            = "bodyParse"
	Validator            = "validator"
	QueryError           = "queryError"
	CacheError           = "cacheError"
	Forbidden            = "forbidden"
	MissingRequiredParam = "missingRequiredParam"
	InvalidParam         = "invalidParam"
	OutOfSync            = "outOfSync"
)

Define error codes as constants.

Variables

This section is empty.

Functions

func Response

func Response(c *fiber.Ctx, status int, code, message interface{}) error

Response creates a JSON response with a message and code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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