Method: WEBrick::HTTPStatus.server_error?

Defined in:
lib/webrick/httpstatus.rb

.server_error?(code) ⇒ Boolean

Is code a server error status?

Returns:

  • (Boolean)


176
177
178
# File 'lib/webrick/httpstatus.rb', line 176

def server_error?(code)
  code.to_i >= 500 and code.to_i < 600
end