Documentation ¶
Index ¶
- func BadRequest(err error) []*jsonapi.ErrorObject
- func Conflict() *jsonapi.ErrorObject
- func Forbidden() *jsonapi.ErrorObject
- func InternalError() *jsonapi.ErrorObject
- func NotAllowed(errs ...error) *jsonapi.ErrorObject
- func NotFound() *jsonapi.ErrorObject
- func RequestTimeout() *jsonapi.ErrorObject
- func TooManyRequests() *jsonapi.ErrorObject
- func Unauthorized() *jsonapi.ErrorObject
- type BadRequester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(err error) []*jsonapi.ErrorObject
func Conflict ¶
func Conflict() *jsonapi.ErrorObject
func Forbidden ¶
func Forbidden() *jsonapi.ErrorObject
func InternalError ¶
func InternalError() *jsonapi.ErrorObject
func NotAllowed ¶
func NotAllowed(errs ...error) *jsonapi.ErrorObject
NotAllowed will try to guess details of error and populate problem accordingly.
func NotFound ¶
func NotFound() *jsonapi.ErrorObject
func RequestTimeout ¶ added in v1.7.2
func RequestTimeout() *jsonapi.ErrorObject
func TooManyRequests ¶
func TooManyRequests() *jsonapi.ErrorObject
func Unauthorized ¶
func Unauthorized() *jsonapi.ErrorObject
Types ¶
type BadRequester ¶
BadRequester is an error that indicates bad request.
Click to show internal directories.
Click to hide internal directories.