used the status code from http post request to log an error, closes #241