lib/curb-fu/response.rb in curb-fu-0.4.3 vs lib/curb-fu/response.rb in curb-fu-0.4.4
- old
+ new
@@ -128,52 +128,52 @@
end
end
end
module Information; end
- module Continue; def self.to_i; 100; end; end
- module SwitchProtocl; end
- module Success; def self.to_i; 200; end; end
- module OK; def self.to_i; 200; end; end
- module Created; def self.to_i; 201; end; end
- module Accepted; def self.to_i; 202; end; end
- module NonAuthoritativeInformation; end
- module NoContent; end
- module ResetContent; end
- module PartialContent; end
- module Redirection; end # 3xx
- module MultipleChoice; end # 300
- module MovedPermanently; end # 301
- module Found; def self.to_i; 302; end; end
- module SeeOther; end # 303
- module NotModified; end # 304
- module UseProxy; end # 305
- module TemporaryRedirect; end # 307
- module ClientError; end # 4xx
- module BadRequest; end # 400
- module Unauthorized; end # 401
- module PaymentRequired; end # 402
- module Forbidden; end # 403
- module NotFound; def self.to_i; 404; end; end
- module MethodNotAllowed; end # 405
- module NotAcceptable; end # 406
- module ProxyAuthenticationRequired; end # 407
- module RequestTimeOut; end # 408
- module Conflict; end # 409
- module Gone; def self.to_i; 410; end; end
- module LengthRequired; end # 411
- module PreconditionFailed; end # 412
- module RequestEntityTooLarge; end # 413
- module RequestURITooLong; end # 414
- module UnsupportedMediaType; end # 415
- module RequestedRangeNotSatisfiable; end # 416
- module ExpectationFailed; end # 417
- module ServerError; end # 5xx
- module InternalServerError; def self.to_i; 500; end; end
- module NotImplemented; end # 501
- module BadGateway; end # 502
- module ServiceUnavailable; def self.to_i; 503; end; end
- module GatewayTimeOut; end # 504
- module VersionNotSupported; end # 505
- module UnknownResponse; end
+ module Continue; def self.to_i; 100; end; def message; "Continue"; end; end
+ module SwitchProtocol; def self.to_i; 101; end; def message; "Switch Protocol"; end; end
+ module Success; def self.to_i; 200; end; def message; "Success"; end; end
+ module OK; def self.to_i; 200; end; def message; "OK"; end; end
+ module Created; def self.to_i; 201; end; def message; "Created"; end; end
+ module Accepted; def self.to_i; 202; end; def message; "Accepted"; end; end
+ module NonAuthoritativeInformation; def self.to_i; 203; end; def message; "Non Authoritative Information"; end; end
+ module NoContent; def self.to_i; 204; end; def message; "No Content"; end; end
+ module ResetContent; def self.to_i; 205; end; def message; "Reset Content"; end; end
+ module PartialContent; def self.to_i; 206; end; def message; "Partial Content"; end; end
+ module Redirection; def self.to_i; 300; end; def message; "Redirection"; end; end
+ module MultipleChoice; def self.to_i; 300; end; def message; "Multiple Choice"; end; end
+ module MovedPermanently; def self.to_i; 301; end; def message; "Moved Permanently"; end; end
+ module Found; def self.to_i; 302; end; def message; "Found"; end; end
+ module SeeOther; def self.to_i; 303; end; def message; "See Other"; end; end
+ module NotModified; def self.to_i; 304; end; def message; "Not Modified"; end; end
+ module UseProxy; def self.to_i; 305; end; def message; "Use Proxy"; end; end
+ module TemporaryRedirect; def self.to_i; 307; end; def message; "Temporary Redirect"; end; end
+ module ClientError; def self.to_i; 400; end; def message; "Client Error"; end; end
+ module BadRequest; def self.to_i; 400; end; def message; "Bad Request"; end; end
+ module Unauthorized; def self.to_i; 401; end; def message; "Unauthorized"; end; end
+ module PaymentRequired; def self.to_i; 402; end; def message; "Payment Required"; end; end
+ module Forbidden; def self.to_i; 403; end; def message; "Forbidden"; end; end
+ module NotFound; def self.to_i; 404; end; def message; "Not Found"; end; end
+ module MethodNotAllowed; def self.to_i; 405; end; def message; "Method Not Allowed"; end; end
+ module NotAcceptable; def self.to_i; 406; end; def message; "Not Acceptable"; end; end
+ module ProxyAuthenticationRequired; def self.to_i; 407; end; def message; "Proxy Authentication Required"; end; end
+ module RequestTimeOut; def self.to_i; 408; end; def message; "Request Time Out"; end; end
+ module Conflict; def self.to_i; 409; end; def message; "Conflict"; end; end
+ module Gone; def self.to_i; 410; end; def message; "Gone"; end; end
+ module LengthRequired; def self.to_i; 411; end; def message; "Length Required"; end; end
+ module PreconditionFailed; def self.to_i; 412; end; def message; "Precondition Failed"; end; end
+ module RequestEntityTooLarge; def self.to_i; 413; end; def message; "Request Entity Too Large"; end; end
+ module RequestURITooLong; def self.to_i; 414; end; def message; "Request URI Too Long"; end; end
+ module UnsupportedMediaType; def self.to_i; 415; end; def message; "Unsupported Media Type"; end; end
+ module RequestedRangeNotSatisfiable; def self.to_i; 416; end; def message; "Requested Range Not Satisfiable"; end; end
+ module ExpectationFailed; def self.to_i; 417; end; def message; "Expectation Failed"; end; end
+ module ServerError; def self.to_i; 500; end; def message; "Server Error"; end; end
+ module InternalServerError; def self.to_i; 500; end; def message; "Internal Server Error"; end; end
+ module NotImplemented; def self.to_i; 501; end; def message; "Not Implemented"; end; end
+ module BadGateway; def self.to_i; 502; end; def message; "Bad Gateway"; end; end
+ module ServiceUnavailable; def self.to_i; 503; end; def message; "Service Unavailable"; end; end
+ module GatewayTimeOut; def self.to_i; 504; end; def message; "Gateway Time Out"; end; end
+ module VersionNotSupported; def self.to_i; 505; end; def message; "Version Not Supported"; end; end
+ module UnknownResponse; def self.to_i; 0; end; def message; "Unknown Response"; end; end
end
end