httperrors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0, BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	Code    int
	Message string
}

func BadRequest

func BadRequest(message string) *HTTPError

func Conflict

func Conflict(message string) *HTTPError

func NotFound

func NotFound(message string) *HTTPError

func Timeout

func Timeout(message string) *HTTPError

func (*HTTPError) Error

func (he *HTTPError) Error() string

Jump to

Keyboard shortcuts

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