Added http_response_code for PHP < 5.4