bug fixes
added http_reponse_code fall back for php under 5.4