Sha256: 86e6eb8a9d0d030dbe63d69baf0f3297795cd8e78fa8249fd4248439a5a3e966
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true module Pragma module Operation class Response # Represents the 403 Forbidden HTTP response. class Forbidden < 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: :forbidden, error_message: 'You are not authorized to access the requested resource.' ), headers: {} ) super(status: 403, 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/forbidden.rb |