aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/errors_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/errors_controller.rb')
-rw-r--r--app/controllers/errors_controller.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
new file mode 100644
index 000000000..c68a60804
--- /dev/null
+++ b/app/controllers/errors_controller.rb
@@ -0,0 +1,9 @@
+class ErrorsController < ApplicationController
+ def not_found
+ render :status => 404, :formats => [:html]
+ end
+
+ def server_error
+ render :status => 500, :formats => [:html]
+ end
+end \ No newline at end of file