Add redirection of curl errors