class Drillbit::Responses::InvalidSubdomain
Public Class Methods
call(env)
click to toggle source
rubocop:disable Style/InlineComment
# File lib/drillbit/responses/invalid_subdomain.rb, line 9 def self.call(env) error = Drillbit::Errors::InvalidSubdomain.new(http_host: env['HTTP_HOST']) [ error.http_status, # HTTP Status Code {}, # Response Headers ["{\"errors\": [#{error.to_json}]}"], # Message ] end