Sha256: c73432cd3ab9fdaa82f83eae8eb12aa3c4fffc315470fa9a244d420524b797bc

Contents?: true

Size: 1.03 KB

Versions: 16

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

module MyApiClient
  # For 5xx server error
  class ServerError < Error
    # 500 Internal Server Error
    class InternalServerError < ServerError; end

    # 501 Not Implemented
    class NotImplemented < ServerError; end

    # 502 Bad Gateway
    class BadGateway < ServerError; end

    # 503 Service Unavailable
    class ServiceUnavailable < ServerError; end

    # 504 Gateway Timeout
    class GatewayTimeout < ServerError; end

    # 505 HTTP Version Not Supported
    class HttpVersionNotSupported < ServerError; end

    # 506 Variant Also Negotiates
    class VariantAlsoNegotiates < ServerError; end

    # 507 Insufficient Storage
    class InsufficientStorage < ServerError; end

    # 508 Loop Detected
    class LoopDetected < ServerError; end

    # 509 Bandwidth Limit Exceeded
    class BandwidthLimitExceeded < ServerError; end

    # 510 Not Extended
    class NotExtended < ServerError; end

    # 511 Network Authentication Required
    class NetworkAuthenticationRequired < ServerError; end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
my_api_client-1.2.0 lib/my_api_client/errors/server_error.rb
my_api_client-1.1.0 lib/my_api_client/errors/server_error.rb
my_api_client-1.0.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.27.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.26.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.25.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.24.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.23.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.22.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.21.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.20.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.19.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.18.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.17.0 lib/my_api_client/errors/server_error.rb
my_api_client-0.16.1 lib/my_api_client/errors/server_error.rb
my_api_client-0.16.0 lib/my_api_client/errors/server_error.rb