Method: Mongrel2::HTTPResponse#status_is_successful?
- Defined in:
- lib/mongrel2/httpresponse.rb
#status_is_successful? ⇒ Boolean
Return true if response is in the 2XX range
112 113 114 |
# File 'lib/mongrel2/httpresponse.rb', line 112 def status_is_successful? return self.status_category == 2 end |