avoid having 0 as the response code in logs