Sha256: ece7d16a2180a388a7552e8a36401d12dd13566bbe6dccddf634dc35c09d01f9
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module Pragma module Operation class Response # Represents the 400 Bad Request HTTP response. class BadRequest < Response def initialize( entity: Error.new(error_type: :bad_request, error_message: 'This request is malformed.'), headers: {} ) super(status: 400, 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/bad_request.rb |