Add 401 error handling
Merge pull request #15 from myuhe/Dev

Add 401 error handling