Class: Easyship::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/easyship/error.rb

Overview

Represents a mapping of HTTP status codes to Easyship-specific classes

Constant Summary collapse

ERRORS =

rubocop:disable Style::MutableConstant Style::MissingElse

{
  400 => Easyship::Errors::BadRequestError,
  401 => Easyship::Errors::InvalidTokenError,
  402 => Easyship::Errors::PaymentRequiredError,
  404 => Easyship::Errors::ResourceNotFoundError,
  422 => Easyship::Errors::UnprocessableContentError,
  429 => Easyship::Errors::RateLimitError
}