aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 5b9cf0ea8..8415d49df 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -213,9 +213,9 @@ ChouetteIhm::Application.routes.draw do
get '/help/(*slug)' => 'help#show'
- match '/404', to: 'errors#not_found', via: :all
- match '/403', to: 'errors#not_allowed', via: :all
- match '/422', to: 'errors#server_error', via: :all
- match '/500', to: 'errors#server_error', via: :all
+ match '/404', to: 'errors#not_found', via: :all, as: 'not_found'
+ match '/403', to: 'errors#forbidden', via: :all, as: 'forbidden'
+ match '/422', to: 'errors#server_error', via: :all, as: 'unprocessable_entity'
+ match '/500', to: 'errors#server_error', via: :all, as: 'server_error'
end