Method: Rack::Lint#check_status
- Defined in:
- lib/rack/lint.rb
#check_status(status) ⇒ Object
The Status
395 396 397 398 399 |
# File 'lib/rack/lint.rb', line 395 def check_status(status) ## This is an HTTP status. When parsed as integer (+to_i+), it must be ## greater than or equal to 100. assert("Status must be >=100 seen as integer") { status.to_i >= 100 } end |