Skip to content

Instantly share code, notes, and snippets.

View cbdelavenne's full-sized avatar

Cyrille (Asim) B. Delavenne cbdelavenne

View GitHub Profile
@danmatthews
danmatthews / _statustext.php
Created November 20, 2011 03:32
Helper function to convert HTTP status codes into descriptive text.
<?php
function _statustext($code = 0) {
// List of HTTP status codes.
$statuslist = array(
'100' => 'Continue',
'101' => 'Switching Protocols',
'200' => 'OK',
'201' => 'Created',