log status_line and error message if post was not successful