500 is not the code for authentication issue.