Add fallback for http_response_code

Need to support PHP 5.3 for wmflabs.org