Method: Mongrel2::HTTPResponse#status_category
- Defined in:
- lib/mongrel2/httpresponse.rb
#status_category ⇒ Object
Return the numeric category of the response’s status code (1-5)
99 100 101 102 |
# File 'lib/mongrel2/httpresponse.rb', line 99 def status_category return 0 if self.status.nil? return (self.status / 100).ceil end |