Only use http_response_code() if it's available, allows to run on PHP5.3.X