Adding HTTP Code Failure support to CURL HttpRequest implementation