Exception: Drillbit::Errors::InvalidToken

Inherits:
RuntimeError
  • Object
show all
Includes:
Erratum::Error
Defined in:
lib/drillbit/errors/invalid_token.rb

Instance Method Summary collapse

Instance Method Details

#detailObject



18
19
20
# File 'lib/drillbit/errors/invalid_token.rb', line 18

def detail
  'Either the token you passed is invalid or is not allowed to perform this action.'
end

#http_statusObject



10
11
12
# File 'lib/drillbit/errors/invalid_token.rb', line 10

def http_status
  401
end

#titleObject



14
15
16
# File 'lib/drillbit/errors/invalid_token.rb', line 14

def title
  'Invalid or Unauthorized Token'
end