Sha256: cde2ffe7b708fe19a65310fc2f8f71880dd4f2e7d6389bac5fac15ed3e3963e4
Contents?: true
Size: 632 Bytes
Versions: 1
Compression:
Stored size: 632 Bytes
Contents
# frozen_string_literal: true module Pragma module Operation class Response # Represents the 404 Not Found HTTP response. class NotFound < 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: :not_found, error_message: 'The requested resource could not be found.' ), headers: {} ) super(status: 404, 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/not_found.rb |