Its error handling is a little odd, and it doesn't detect unexpected commands.
$ resty 42; echo $?
resty: curl returned error 42
0
$
(curl was never called.)