Don't you need ```curl --fail``` here (to set curl exit status)?