Throw client exceptions on 400 and 401 responses