Compatibility with PHP < 5.4 (http_response_code)