httperr

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package httperr provides some convenience functions to create echo HTTP errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequestf

func BadRequestf(format string, args ...interface{}) error

BadRequestf creates an HTTP error with "bad request" code and a message.

func BindFail

func BindFail(err error) error

BindFail creates an HTTP error with "bind fail" message.

func Newf

func Newf(code int, format string, args ...interface{}) error

Newf creates an HTTP error with a code and message.

func NotFoundf

func NotFoundf(format string, args ...interface{}) error

NotFoundf creates an HTTP error with "not found" code and a message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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