4 * Throwable exceptions to return HTTP status code
6 * This list of Exception has be extracted from
7 * here http://racksburg.com/choosing-an-http-status-code/
10 namespace Friendica\Network;
14 class HTTPException extends Exception
19 public function __construct($message = '', $code = 0, Exception $previous = null)
21 if ($this->httpdesc == '') {
22 $classname = str_replace('Exception', '', str_replace('Friendica\Network\HTTPException\\', '', get_class($this)));
23 $this->httpdesc = preg_replace("|([a-z])([A-Z])|",'$1 $2', $classname);
25 parent::__construct($message, $code, $previous);