Exception: Apill::Errors::InvalidToken

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

Instance Method Summary collapse

Instance Method Details

#detailObject



16
17
18
# File 'lib/apill/errors/invalid_token.rb', line 16

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

#http_statusObject



8
9
10
# File 'lib/apill/errors/invalid_token.rb', line 8

def http_status
  401
end

#titleObject



12
13
14
# File 'lib/apill/errors/invalid_token.rb', line 12

def title
  'Invalid or Unauthorized Token'
end