Auth error http response

Auth error http response

Scenario :calling the workdrive api with an expired token 
Expected behaviour : 401 response 
Current behaviour : 500 internal server error

500 with expired token

PS: When I call with no token I get the correct 401 response 

401