godreams/admin-server

View on GitHub
app/exceptions/users/authentication_failed_exception.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Users
  class AuthenticationFailedException < ApplicationException
    def initialize
      @code = :authentication_failed
      @message = 'Could not validate authorization'
      @description = 'Please authenticate and acquire JWT before attempting to access restricted routes. JWT should be passed in the Authorization header.'
      @status = 401
    end
  end
end