require 'minato_error_handler' module MinatoRubyApiClient class ApiError < MinatoErrorHandler::Errors::ExternalError attr_reader :status_code def initialize(res: nil, req: nil, status_code: 500) super(req: req, res: res) @status_code = status_code end def message "An error occurred while communicating with the API." end end end