# frozen_string_literal: true module MinatoErrorHandler module Errors class ExternalError < MinatoErrorHandler::Errors::MinatoError attr_accessor :req, :res def initialize(req: nil, res: nil) @req = req @res = res super() end def message "A external error has occurred!" end def status_code 503 end def debug_details { request: req, response: res } end end end end