Categorygithub.com/joeyfromspace/go-api-errors/v2
modulepackage
2.1.1
Repository: https://github.com/joeyfromspace/go-api-errors.git
Documentation: pkg.go.dev

# README

go-api-errors

Common library for instantiating different HTTP errors and codes.

# Packages

No description provided by the author

# Functions

SendError sends an error response to the passed in writer along with an optional custom error struct.
SendInternalError sends a 500 response to the passed in writer along with an optional custom error struct.
SendUnauthorizedError sends a 401 response to the passed in writer along with an optinal custom error struct.

# Structs

APIErrorResponse is the envelope for a json error response.