weberrors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequestResponse

func BadRequestResponse(c *gin.Context, err error)

BadRequestResponse logs and sets a 400 Bad Request Error err is logged but not displayed to the user.

func ExtractErrMsg

func ExtractErrMsg(err error) string

func ForbiddenResponse

func ForbiddenResponse(c *gin.Context)

ForbiddenResponse logs and sets a 403 Forbidden Error

func InternalServerErrorResponse

func InternalServerErrorResponse(c *gin.Context, err error)

InternalServerErrorResponse is a helper function to log an internal server error and return a 500 response. err is logged but not displayed to the user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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