- http://www.rubydoc.info/github/rest-client/rest-client/RestClient/Exception
- http://www.rubydoc.info/github/rest-client/rest-client/RestClient/SSLCertificateNotVerified
- http://www.rubydoc.info/github/rest-client/rest-client/RestClient/ServerBrokeConnection
- http://www.rubydoc.info/github/rest-client/rest-client/RestClient/Exceptions/Timeout
- http://www.rubydoc.info/github/rest-client/rest-client/RestClient/ExceptionWithResponse
- http://www.rubydoc.info/github/rest-client/rest-client/RestClient/RequestFailed
-
An exception per HTTP status:
[5] pry(main)> RestClient::Exceptions::EXCEPTIONS_MAP => {100=>RestClient::Continue, 101=>RestClient::SwitchingProtocols, 102=>RestClient::Processing, 200=>RestClient::OK, 201=>RestClient::Created, 202=>RestClient::Accepted, 203=>RestClient::NonAuthoritativeInformation, 204=>RestClient::NoContent, 205=>RestClient::ResetContent, 206=>RestClient::PartialContent, 207=>RestClient::MultiStatus, 208=>RestClient::AlreadyReported, 226=>RestClient::IMUsed, 300=>RestClient::MultipleChoices, 301=>RestClient::MovedPermanently, 302=>RestClient::Found, 303=>RestClient::SeeOther, 304=>RestClient::NotModified, 305=>RestClient::UseProxy, 306=>RestClient::SwitchProxy, 307=>RestClient::TemporaryRedirect, 308=>RestClient::PermanentRedirect, 400=>RestClient::BadRequest, 401=>RestClient::Unauthorized, 402=>RestClient::PaymentRequired, 403=>RestClient::Forbidden, 404=>RestClient::NotFound, 405=>RestClient::MethodNotAllowed, 406=>RestClient::NotAcceptable, 407=>RestClient::ProxyAuthenticationRequired, 408=>RestClient::RequestTimeout, 409=>RestClient::Conflict, 410=>RestClient::Gone, 411=>RestClient::LengthRequired, 412=>RestClient::PreconditionFailed, 413=>RestClient::PayloadTooLarge, 414=>RestClient::URITooLong, 415=>RestClient::UnsupportedMediaType, 416=>RestClient::RangeNotSatisfiable, 417=>RestClient::ExpectationFailed, 418=>RestClient::ImATeapot, 421=>RestClient::TooManyConnectionsFromThisIP, 422=>RestClient::UnprocessableEntity, 423=>RestClient::Locked, 424=>RestClient::FailedDependency, 425=>RestClient::UnorderedCollection, 426=>RestClient::UpgradeRequired, 428=>RestClient::PreconditionRequired, 429=>RestClient::TooManyRequests, 431=>RestClient::RequestHeaderFieldsTooLarge, 449=>RestClient::RetryWith, 450=>RestClient::BlockedByWindowsParentalControls, 500=>RestClient::InternalServerError, 501=>RestClient::NotImplemented, 502=>RestClient::BadGateway, 503=>RestClient::ServiceUnavailable, 504=>RestClient::GatewayTimeout, 505=>RestClient::HTTPVersionNotSupported, 506=>RestClient::VariantAlsoNegotiates, 507=>RestClient::InsufficientStorage, 508=>RestClient::LoopDetected, 509=>RestClient::BandwidthLimitExceeded, 510=>RestClient::NotExtended, 511=>RestClient::NetworkAuthenticationRequired}
-
- http://www.rubydoc.info/github/rest-client/rest-client/RestClient/RequestFailed
-
-
Save khalilgharbaoui/69bed142267de3211c40887df01f1469 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment