Syslog HTTP return code as 0 for failed requests.

Avoid exception for logging the request during handling of another
exception. Sent requests to syslog with invalid HTTP return code 0,
even they failed.