problemdetail

package
v0.0.0-...-b3accde Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(ctx *fiber.Ctx, message string) error

func NotAuthorizedProblem

func NotAuthorizedProblem(ctx *fiber.Ctx, message string) error

func NotFound

func NotFound(ctx *fiber.Ctx, message string) error

func NotImplemented

func NotImplemented(ctx *fiber.Ctx, message string) error

func ServerErrorProblem

func ServerErrorProblem(ctx *fiber.Ctx, message string) error

func ValidationErrors

func ValidationErrors(ctx *fiber.Ctx, message string, validationErrors any) error

Types

type ProblemDetail

type ProblemDetail struct {
	Type    string `json:"type"`
	Title   string `json:"title"`
	Detail  string `json:"detail"`
	Context any    `json:"context"`
}

func BadRequestProblemDetail

func BadRequestProblemDetail(message string) ProblemDetail

func PaymentRequiredProblemDetail

func PaymentRequiredProblemDetail(message string) ProblemDetail

func ServerErrorProblemDetail

func ServerErrorProblemDetail(message string) ProblemDetail

Jump to

Keyboard shortcuts

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