Sha256: e8cef6bb44c9dadfc19a9f27254d6eb3a8e61046611b4db126d76c3b92a51bc2
Contents?: true
Size: 954 Bytes
Versions: 3
Compression:
Stored size: 954 Bytes
Contents
module Reshape # Custom error class for rescuing from all Shapeways errors class Error < StandardError; end # Raised when Shapeways returns a 400 HTTP status code class BadRequest < Error; end # Raised when Shapeways returns a 401 HTTP status code class Unauthorized < Error; end # Raised when Shapeways returns a 403 HTTP status code class Forbidden < Error; end # Raised when Shapeways returns a 404 HTTP status code class NotFound < Error; end # Raised when Shapeways returns a 406 HTTP status code class NotAcceptable < Error; end # Raised when Shapeways returns a 422 HTTP status code class UnprocessableEntity < Error; end # Raised when Shapeways returns a 500 HTTP status code class InternalServerError < Error; end # Raised when Shapeways returns a 502 HTTP status code class BadGateway < Error; end # Raised when Shapeways returns a 503 HTTP status code class ServiceUnavailable < Error; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reshape-0.2 | lib/reshape/error.rb |
reshape-0.1.1 | lib/reshape/error.rb |
reshape-0.1 | lib/reshape/error.rb |