httperr

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusCodeFromError

func StatusCodeFromError(e interface{}) int

Types

type ErrorWithStatusCode

type ErrorWithStatusCode struct {
	StatusCode int
	Err        error
}

func (ErrorWithStatusCode) Error

func (e ErrorWithStatusCode) Error() string

func (ErrorWithStatusCode) GetStatusCode

func (e ErrorWithStatusCode) GetStatusCode() int

func (ErrorWithStatusCode) Unwrap

func (e ErrorWithStatusCode) Unwrap() error

Jump to

Keyboard shortcuts

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