Permalink
Browse files

Added :bad_request error.

This is required for example when an API call is made and is missing required parameters...
  • Loading branch information...
1 parent afdc228 commit a2ee780c7f02d9abe5dd80abf8404d3244aebd77 @ekampf ekampf committed May 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/rocket_pants/exceptions.rb
@@ -106,6 +106,7 @@ def self.register!(name, options = {})
register! :invalid_version, :http_status => :not_found
register! :not_implemented, :http_status => :service_unavailable
register! :not_found, :http_status => :not_found
+ register! :bad_request, :http_status => :bad_request
end

0 comments on commit a2ee780

Please sign in to comment.