Actions
Feature #3957
openStandard way of sending bad request response not tied to active record or apipie
Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
Currently in the API controllers, the only standard way I see that can lead to 400 Bad Request status
is when an active record fails or Apipie::ParamError is raised.
I would like to have HttpErrors::BadRequest exception, that would have
defined rescue_from as well, that can be used without connection to ActiveRecord or Apipie.
Actions