log statuscode on error only