Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php http errorcode


<?php

// Get the current default response code
var_dump(http_response_code());     // false

// Set a response code
var_dump(http_response_code(201));  // true

// Get the new response code
var_dump(http_response_code());     // 201
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #http #errorcode
ADD COMMENT
Topic
Name
2+2 =