Fixed error handling in authorisation request