package
0.0.3
Repository: https://github.com/fabric8io/almighty-core.git
Documentation: pkg.go.dev

# Functions

ErrorHandler turns a Go error into an JSONAPI HTTP response.
ErrorToJSONAPIError returns the JSONAPI representation of an error and the HTTP status code that will be associated with it.
ErrorToJSONAPIErrors is a convenience function if you just want to return one error from the models package as a JSONAPI errors array.
JSONErrorResponse auto maps the provided error to the correct response type If all else fails, InternalServerError is returned.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Media type for errors returned by the JSON API error handler middleware.

# Interfaces

BadRequest represent a Context that can return a BadRequest HTTP status.
Conflict represent a Context that can return a Conflict HTTP status.
Forbidden represent a Context that can return a Unauthorized HTTP status.
InternalServerError represent a Context that can return a InternalServerError HTTP status.
NotFound represent a Context that can return a NotFound HTTP status.
Unauthorized represent a Context that can return a Unauthorized HTTP status.