httperrors

package
v2.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is403

func Is403(err error) bool

Is403 returns true if err is an HTTP 403 error

func Is404

func Is404(err error) bool

Is404 returns true if err is an HTTP 404 error

func Is409

func Is409(err error) bool

Is409 return true is err is an HTTP 409 error

func Is410

func Is410(err error) bool

Is410 returns true if err is an HTTP 410 error

func Is412

func Is412(err error) bool

func IsHTTPCodeError

func IsHTTPCodeError(err error, statusCode int) bool

IsHTTPCodeError returns true if err is an http error with code statusCode

Types

This section is empty.

Jump to

Keyboard shortcuts

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