add http_response_code support for old php