Add missing HttpException namespace
Add Test to check the status code of the response when API token endpoint is not used with SSL
Merge pull request #274 from nlegoff/fix_api_https

[3.7] Fix api token endpoint response code issue