Method: Flame::Dispatcher#status
- Defined in:
- lib/flame/dispatcher.rb
#status(value = nil) ⇒ Integer
Acccess to the status of response
49 50 51 52 53 |
# File 'lib/flame/dispatcher.rb', line 49 def status(value = nil) response.status ||= 200 response.headers['X-Cascade'] = 'pass' if value == 404 value ? response.status = value : response.status end |