Sha256: c7dc8cf979a3147753c2612e6170c41c06766a3bbb74933cb40c81523a874f25
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
module Brat module Error # Custom error class for rescuing from all Brat errors. class Error < StandardError; end # Raise when attributes are missing. class MissingAttributes < Error; end # Raised when API endpoint credentials not configured. class MissingCredentials < Error; end # Raised when impossible to parse response body. class Parsing < Error; end # Raised when API endpoint returns the HTTP status code 400. class BadRequest < Error; end # Raised when API endpoint returns the HTTP status code 401. class Unauthorized < Error; end # Raised when API endpoint returns the HTTP status code 403. class Forbidden < Error; end # Raised when API endpoint returns the HTTP status code 404. class NotFound < Error; end # Raised when API endpoint returns the HTTP status code 405. class MethodNotAllowed < Error; end # Raised when API endpoint returns the HTTP status code 409. class Conflict < Error; end # Raised when API endpoint returns the HTTP status code 500. class InternalServerError < Error; end # Raised when API endpoint returns the HTTP status code 502. class BadGateway < Error; end # Raised when API endpoint returns the HTTP status code 503. class ServiceUnavailable < Error; end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brat-0.1.1 | lib/brat/error.rb |