$_SERVER get code status
<?php function get_status($code) { switch ($code) { case 400: return "Bad Request"; case 403: return "Forbidden"; case 404: return "Not Found"; case 500: return "Internal Server Error"; case 503: return "Service Unavailable"; } } get_status(403); ?>