module Thounds # Custom error class for rescuing from all Thounds errors class Error < StandardError; end # Raised when Thounds returns the HTTP status code 400 class BadRequest < Error; end # Raised when Thounds returns the HTTP status code 401 class Unauthorized < Error; end # Raised when Thounds returns the HTTP status code 403 class Forbidden < Error; end # Raised when Thounds returns the HTTP status code 404 class NotFound < Error; end # Raised when Thounds returns the HTTP status code 406 class NotAcceptable < Error; end # Raised when Thounds returns the HTTP status code 500 class InternalServerError < Error; end # Raised when Thounds returns the HTTP status code 502 class BadGateway < Error; end # Raised when Thounds returns the HTTP status code 503 class ServiceUnavailable < Error; end end