Module HTTP::Status
In: lib/httpclient/http.rb

Represents HTTP response status code. Defines constants for HTTP response and some conditional methods.

Methods

Constants

OK = 200
CREATED = 201
ACCEPTED = 202
NON_AUTHORITATIVE_INFORMATION = 203
NO_CONTENT = 204
RESET_CONTENT = 205
PARTIAL_CONTENT = 206
MOVED_PERMANENTLY = 301
FOUND = 302
SEE_OTHER = 303
TEMPORARY_REDIRECT = MOVED_TEMPORARILY = 307
BAD_REQUEST = 400
UNAUTHORIZED = 401
PROXY_AUTHENTICATE_REQUIRED = 407
INTERNAL = 500
SUCCESSFUL_STATUS = [ OK, CREATED, ACCEPTED, NON_AUTHORITATIVE_INFORMATION, NO_CONTENT, RESET_CONTENT, PARTIAL_CONTENT   Status codes for successful HTTP response.
REDIRECT_STATUS = [ MOVED_PERMANENTLY, FOUND, SEE_OTHER, TEMPORARY_REDIRECT, MOVED_TEMPORARILY   Status codes which is a redirect.

Public Class methods

Returns true if the given status is thought to be redirect. See also REDIRECT_STATUS.

Returns true if the given status represents successful HTTP response. See also SUCCESSFUL_STATUS.

[Validate]