diff options
Diffstat (limited to 'packages/chef-server/app/controllers/exceptions.rb')
-rw-r--r-- | packages/chef-server/app/controllers/exceptions.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/chef-server/app/controllers/exceptions.rb b/packages/chef-server/app/controllers/exceptions.rb new file mode 100644 index 0000000000..7f72e57ad2 --- /dev/null +++ b/packages/chef-server/app/controllers/exceptions.rb @@ -0,0 +1,20 @@ +class Exceptions < Application + + provides :html, :json + + # handle NotFound exceptions (404) + def not_found + display params + end + + # handle NotAcceptable exceptions (406) + def not_acceptable + display params + end + + # handle BadRequest exceptions (400) + def bad_request + display params + end + +end
\ No newline at end of file |