Sha256: 375dbf9b3750d7fff90a5c960a1468c5573b6595f9945b3b30e9070f4816c5ec
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
# frozen_string_literal: true module Pragma module Operation class Response # Represents the 500 Internal Server Error HTTP response. class InternalServerError < Response # Initializes the response. # # @param entity [Object] the response's entity # @param headers [Hash] the response's headers def initialize( entity: Error.new( error_type: :internal_server_error, error_message: 'There was an error processing your request.' ), headers: {} ) super(status: 500, entity: entity, headers: headers) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pragma-operation-2.2.0 | lib/pragma/operation/response/internal_server_error.rb |