1--TEST-- 2Test http_response_code basic functionality 3--CREDITS-- 4Gabriel Caruso (carusogabriel@php.net) 5--FILE-- 6<?php 7var_dump( 8 // Get the current default response code 9 http_response_code(), 10 // Set a response code 11 http_response_code(201), 12 // Get the new response code 13 http_response_code() 14); 15?> 16--EXPECT-- 17bool(false) 18bool(true) 19int(201) 20