Skip to content

Instantly share code, notes, and snippets.

@bencrouse
Created July 9, 2012 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencrouse/3078853 to your computer and use it in GitHub Desktop.
Save bencrouse/3078853 to your computer and use it in GitHub Desktop.
ActionDispatch::ShowExceptions.rescue_responses
{"ActionController::RoutingError"=>:not_found,
"AbstractController::ActionNotFound"=>:not_found,
"ActionController::MethodNotAllowed"=>:method_not_allowed,
"ActionController::NotImplemented"=>:not_implemented,
"ActionController::InvalidAuthenticityToken"=>:unprocessable_entity,
"ActiveRecord::RecordNotFound"=>:not_found,
"ActiveRecord::StaleObjectError"=>:conflict,
"ActiveRecord::RecordInvalid"=>:unprocessable_entity,
"ActiveRecord::RecordNotSaved"=>:unprocessable_entity
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment