Method: WEBrick::HTTPStatus.client_error?
- Defined in:
- lib/webrick/httpstatus.rb
.client_error?(code) ⇒ Boolean
Is code a client error status?
170 171 172 |
# File 'lib/webrick/httpstatus.rb', line 170 def client_error?(code) code.to_i >= 400 and code.to_i < 500 end |