/go-hterrors

Convenience library for handling non-2xx HTTP errors

Primary LanguageGoMIT LicenseMIT

go-hterrors

GoDoc

go get snai.pe/go-hterrors

A Go convenience library for handling non-2xx HTTP error codes.

The library does a best-effort parsing of the response body based on common MIME-types to produce a reasonable Go error.