httperrors

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckResponseStatus

func CheckResponseStatus(resp *http.Response, body []byte, expectedStatusCodes ...int) error

Check expected status codes and return error if needed

func IsResponseStatusError

func IsResponseStatusError(err error) bool

Check if the error is instance of ResponseStatusError

Types

type ResponseStatusError

type ResponseStatusError struct {
	// contains filtered or unexported fields
}

func (*ResponseStatusError) Error

func (e *ResponseStatusError) Error() string

Jump to

Keyboard shortcuts

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