Module: Ramaze::Helper::Error

Defined in:
lib/cortex_reaver/helper/error.rb

Overview

Provides some error pages

Instance Method Summary collapse

Instance Method Details

#error_403Object



9
10
11
# File 'lib/cortex_reaver/helper/error.rb', line 9

def error_403
  respond! 'Forbidden', 403, "Content-Type" => "text/plain"
end

#error_404Object



5
6
7
# File 'lib/cortex_reaver/helper/error.rb', line 5

def error_404
  respond! 'Page not found', 404, "Content-Type" => "text/plain"
end