aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-09-04 16:23:03 +0100
committerRobin Houston <robin.houston@gmail.com>2012-09-06 14:57:24 +0100
commit63524f0ebdd00141a932475f82f7a5cadc4e336b (patch)
tree7436f5c5150ee2579e1be23b0a5c47486d4af0d2 /spec/controllers/request_controller_spec.rb
parentda70b7b4f58be9d78afba9ec6045d18094ea9581 (diff)
API errors should be JSON
The API was returning Rails (HTML) errors for certain error conditions, which is inconvenient because it makes it difficult for the client to extract the error message. This patch changes add_correspondence to return JSON errors (still with suitable HTTP status codes) for two common exceptional conditions, and adds tests. Conflicts: spec/controllers/api_controller_spec.rb
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
0 files changed, 0 insertions, 0 deletions