Method: Rack::Utils.status_code
- Defined in:
- lib/rack/utils.rb
.status_code(status) ⇒ Object
458 459 460 461 462 463 464 |
# File 'lib/rack/utils.rb', line 458 def status_code(status) if status.is_a?(Symbol) SYMBOL_TO_STATUS_CODE[status] || 500 else status.to_i end end |