module Access class Error class AuthenticationError < StandardError; end class NoAccessToken < AuthenticationError; end class InvalidResponseFormat < TypeError; end class Timeout < Timeout::Error ; end class NoData < EOFError; end attr_reader :message, :status_code, :status def initialize(response_status, response_code, response_message = nil) @status_code = response_code @status = response_status @message = response_message end end end