Manual deploy: ajax call error handling