API: Added http_response_code function support for old php versions