Now handles unauthorised responses from API