Method: Onebox::StatusCheck#human_status

Defined in:
lib/onebox/status_check.rb

#human_statusObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/onebox/status_check.rb', line 18

def human_status
  case status
  when 0
    :connection_error
  when 200..299
    :success
  when 400..499
    :client_error
  when 500..599
    :server_error
  else
    :unknown_error
  end
end