fix for new php http statuscode treatment