Method: Merb::ControllerExceptions::Base.status

Defined in:
lib/merb-core/controller/exceptions.rb

.statusObject Also known as: to_i

Get the actual status-code for an Exception class.

As usual, this can come from a constant upwards in the inheritance chain.

Returns

Fixnum

The status code of this exception.

:api: public



174
175
176
# File 'lib/merb-core/controller/exceptions.rb', line 174

def status
  const_get(:STATUS) rescue 0
end