Class: Drillbit::Responses::InvalidToken
- Inherits:
-
Object
- Object
- Drillbit::Responses::InvalidToken
- Defined in:
- lib/drillbit/responses/invalid_token.rb
Class Method Summary collapse
-
.call(_env, application_name:) ⇒ Object
rubocop:disable Style/InlineComment.
Class Method Details
.call(_env, application_name:) ⇒ Object
rubocop:disable Style/InlineComment
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/drillbit/responses/invalid_token.rb', line 9 def self.call(_env, application_name:) error = Drillbit::Errors::InvalidToken.new [ error.http_status, # HTTP Status Code { # Response Headers 'WWW-Authenticate' => %Q{Token realm="#{application_name}"}, }, ["{\"errors\": [#{error.to_json}]}"], # Message ] end |