Handle 401 responses
Merge pull request #39 from mattbeedle/unauthorized-response

Handle 401 responses