Improving error codes for token request errors