Backported http_response_code() for PHP5.3