Raise UnauthorizedException when HTTP status code 401. Closes #20.