Sha256: 58f01fad36d9c61ef80cbc563df552ead7a765de9fb3474478ed8fc8c8b9c0f6
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
# frozen_string_literal: true require 'drillbit/errors/invalid_api_request' module Drillbit module Responses class InvalidApiRequest def self.call(env) error = Drillbit::Errors::InvalidApiRequest.new(accept_header: env['HTTP_ACCEPT']) [ error.http_status, # HTTP Status Code {}, # Response Headers ["{\"errors\": [#{error.to_json}]}"], # Message ] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
drillbit-2.11.0 | lib/drillbit/responses/invalid_api_request.rb |
drillbit-2.10.0 | lib/drillbit/responses/invalid_api_request.rb |