httperror

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusError = errors.New("wrong status code")
)

Functions

func CheckResponse

func CheckResponse(response *http.Response, err error) (*http.Response, error)

func Is

func Is(err error, code int) bool

func IsErrorResponse

func IsErrorResponse(respose *http.Response) bool

func IsNotFound

func IsNotFound(err error) bool

func IsTimeoutError added in v0.4.1

func IsTimeoutError(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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