File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ From this point you'll have default html errors being serialized. JsonapiErrorsH
3636* [ JsonapiErrorsHandler::Errors::Invalid] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/invalid.rb )
3737* [ JsonapiErrorsHandler::Errors::Forbidden] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/forbidden.rb )
3838* [ JsonapiErrorsHandler::Errors::NotFound] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/not_found.rb )
39- * [ JsonapiErrorsHandler::Errors::Unauthorized] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/not_found .rb )
39+ * [ JsonapiErrorsHandler::Errors::Unauthorized] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/unauthorized .rb )
4040
4141If you rise any of errors above in any place of your application, client gets the nicely formatted error message instead of 500
4242
@@ -103,7 +103,7 @@ By default, we deliver hardcoded responses. You can check out the defined error
103103* [ JsonapiErrorsHandler::Errors::Invalid] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/invalid.rb )
104104* [ JsonapiErrorsHandler::Errors::Forbidden] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/forbidden.rb )
105105* [ JsonapiErrorsHandler::Errors::NotFound] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/not_found.rb )
106- * [ JsonapiErrorsHandler::Errors::Unauthorized] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/not_found .rb )
106+ * [ JsonapiErrorsHandler::Errors::Unauthorized] ( https://github.com/driggl/jsonapi_errors_handler/blob/master/lib/jsonapi_errors_handler/errors/unauthorized .rb )
107107
108108If you want to have custom error responses being delivered, just create your own ` Api::Errors ` that inherits from ` JsonapiErrorsHandler::StandardError `
109109
You can’t perform that action at this time.
0 commit comments