If you want a shell script to return the status, then return that from the shell script.
curl -s wombat echo $?
For more information, see the wiki Searching the Forum for Answers section.