httperror

package
v0.0.0-...-4f3ca93 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotModified = New(http.StatusNotModified, "", nil)

Functions

func BadRequest

func BadRequest(message string, cause error) error

func Forbidden

func Forbidden(message string) error

func Handler

func Handler() macaron.ReturnHandler

func InternalError

func InternalError(message string, cause error) error

func New

func New(code int, message string, cause error) error

func NotFound

func NotFound(message string) error

Types

type HTTPError

type HTTPError struct {
	Code    int
	Message string

	Cause error
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

Jump to

Keyboard shortcuts

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