Module: Pliny::Errors
- Defined in:
- lib/pliny/errors.rb
Defined Under Namespace
Classes: Accepted, BadGateway, BadRequest, Conflict, Continue, Created, Error, ExpectationFailed, Forbidden, Found, GatewayTimeout, Gone, HTTPStatusError, InternalServerError, LengthRequired, MethodNotAllowed, MovedPermanently, MultipleChoices, NoContent, NonAuthoritativeInformation, NotAcceptable, NotFound, NotImplemented, NotModified, OK, PartialContent, PaymentRequired, PreconditionFailed, ProxyAuthenticationRequired, RequestEntityTooLarge, RequestTimeout, RequestURITooLong, RequestedRangeNotSatisfiable, ResetContent, SeeOther, ServiceUnavailable, SwitchingProtocols, TemporaryRedirect, TooManyRequests, Unauthorized, UnprocessableEntity, UnsupportedMediaType, UseProxy
Constant Summary collapse
- META =
Messages for nicer exceptions, from rfc2616
{ Continue => [100, "Continue"], SwitchingProtocols => [101, "Switching protocols"], OK => [200, "OK"], Created => [201, "Created"], Accepted => [202, "Accepted"], NonAuthoritativeInformation => [203, "Non-authoritative information"], NoContent => [204, "No content"], ResetContent => [205, "Reset content"], PartialContent => [206, "Partial content"], MultipleChoices => [300, "Multiple choices"], MovedPermanently => [301, "Moved permanently"], Found => [302, "Found"], SeeOther => [303, "See other"], NotModified => [304, "Not modified"], UseProxy => [305, "Use proxy"], TemporaryRedirect => [307, "Temporary redirect"], BadRequest => [400, "Bad request"], Unauthorized => [401, "Unauthorized"], PaymentRequired => [402, "Payment required"], Forbidden => [403, "Forbidden"], NotFound => [404, "Not found"], MethodNotAllowed => [405, "Method not allowed"], NotAcceptable => [406, "Not acceptable"], ProxyAuthenticationRequired => [407, "Proxy authentication required"], RequestTimeout => [408, "Request timeout"], Conflict => [409, "Conflict"], Gone => [410, "Gone"], LengthRequired => [411, "Length required"], PreconditionFailed => [412, "Precondition failed"], RequestEntityTooLarge => [413, "Request entity too large"], RequestURITooLong => [414, "Request-URI too long"], UnsupportedMediaType => [415, "Unsupported media type"], RequestedRangeNotSatisfiable => [416, "Requested range not satisfiable"], ExpectationFailed => [417, "Expectation failed"], UnprocessableEntity => [422, "Unprocessable entity"], TooManyRequests => [429, "Too many requests"], InternalServerError => [500, "Internal server error"], NotImplemented => [501, "Not implemented"], BadGateway => [502, "Bad gateway"], ServiceUnavailable => [503, "Service unavailable"], GatewayTimeout => [504, "Gateway timeout"], }.freeze