Sha256: 56c9a5edc56f03b5bb5aba99fad2216b8b4cf257c0bf119ca1a3ffb4bdbede54
Contents?: true
Size: 538 Bytes
Versions: 4
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true require 'drillbit/errors/invalid_request_body' module Drillbit module Responses class InvalidRequestBody # rubocop:disable Style/InlineComment def self.call(env) error = Drillbit::Errors::InvalidRequestBody.new(request_body: env['RACK_INPUT']) [ error.http_status, # HTTP Status Code {}, # Response Headers ["{\"errors\": [#{error.to_json}]}"], # Message ] end # rubocop:enable Style/InlineComment end end end
Version data entries
4 entries across 4 versions & 1 rubygems