Skip to content

go-andiamo/httperr

Repository files navigation

httperr

GoDoc Latest Version Go Report Card

httperr is a Go package for HTTP/API errors with status codes and much more...


Features

  • Comprehensive helper functions for new errors (e.g. NewBadRequestError() and many more)
  • Status code
  • Errors with stack trace
  • Cause, additional headers and reasons support
  • Support for errors.Unwrap
  • Wrap function - with pluggable support for wrapped error to status code resolution
  • Configurable (and pluggable) error writer
  • Pluggable formatting

Installation

go get github.com/go-andiamo/httperr

About

Go package for HTTP/API errors

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages