Project

General

Profile

Actions

Feature #3957

open

Standard way of sending bad request response not tied to active record or apipie

Added by Ivan Necas over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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 #1

Updated by Dominic Cleal over 10 years ago

  • Category set to API
Actions

Also available in: Atom PDF