module Arachnid::Resource::StatusCodes

Direct including types

Defined in:

arachnid/resource/status_codes.cr

Instance Method Summary

Instance Method Detail

def bad_request? #

Determines if the response code is 400.


[View source]
def code #

The response code from the resource.


[View source]
def forbidden? #

Determines if the response code is 403.


[View source]
def had_internal_server_error? #

Determines if the response code is 500.


[View source]
def missing? #

Determines if the response code is 404.


[View source]
def ok? #

Determines if the response code is 200.


[View source]
def redirect? #

Determines if the response code is 300, 301, 302, 303 or 307. Also checks for "soft" redirects added at the resource level by a meta refresh tag.


[View source]
def timedout? #

Determines if the response code is 308.


[View source]
def unauthorized? #

Determines if the response code is 401.


[View source]