# File lib/fog/compute/requests/aws/detach_volume.rb, line 41
        def detach_volume(volume_id, options = {})
          response = Excon::Response.new
          response.status = 200
          if (volume = self.data[:volumes][volume_id]) && !volume['attachmentSet'].empty?
            data = volume['attachmentSet'].pop
            volume['status'] = 'available'
            response.status = 200
            response.body = {
              'requestId' => Fog::AWS::Mock.request_id
            }.merge!(data)
            response
          else
            raise Fog::Compute::AWS::NotFound.new("The volume '#{volume_id}' does not exist.")
          end
        end