Sha256: 050ad0f7cc26f2723029e064438969a27508c43226eab08e32a64b51b740edac

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

require "mountapi/response/base"

module Mountapi
  module Response
    # Server side error ( can't be fixed client side )
    class InternalError
      include Base
      status 500

      def initialize(errors, response = nil)
        @errors = errors
        @response = response
      end

      def payload
        { errors: @errors }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mountapi-0.11.1 lib/mountapi/response/internal_error.rb