src/HttpStatuses/HttpStatuses.php
public function getStatus($code) {

        $filename = __DIR__.'/../../data/'.substr($code, 0,1).'.json';
        if(file_exists($filename)) {
            return json_decode(file_get_contents($filename), true)[$code];
        }
        return [];
    }
public function getStatus($code) {

        $filename = __DIR__.'/../../data/'.substr($code, 0,1).'.json';
        if(file_exists($filename)) {
            return json_decode(file_get_contents($filename), true)[$code];
        }
        return [];
    }
public function getStatus ( $ code ) { $ filename = __DIR__ . '/../../data/' . substr ( $ code , 0 , 1 ) . '.json' ; if ( file_exists ( $ filename ) ) { return json_decode ( file_get_contents ( $ filename ) , true ) [ $ code ] ; } return [ ] ; }
Get status full description from code

@param int $code

@return array
Get status full description from code