I'm getting an access denied error, hopefully this will fix that.
When the command gets an error response it still returns 0 if there is output. With this flag it'll still return a non-zero status code even when it outputs text, assuming that the server responds with something of 400 or higher.