package
Version:
v0.7.5
Opens a new window with list of versions in this module.
Published: May 26, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package httperr provides some convenience functions to create echo HTTP errors.
func BadRequestf(format string, args ...interface{}) error
BadRequestf creates an HTTP error with "bad request" code and a message.
BindFail creates an HTTP error with "bind fail" message.
Newf creates an HTTP error with a code and message.
func NotFoundf(format string, args ...interface{}) error
NotFoundf creates an HTTP error with "not found" code and a message.
func Unauthorizedf(format string, args ...interface{}) error
Unauthorizedf creates an HTTP error with "unauthorized" code and a message.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.