for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Win;
use Exception;
/**
* Erro Http
* 403, 404, 500, etc
*/
class HttpException extends Exception
{
public function __construct($message, $code)
http_response_code($code);
parent::__construct($message, $code);
}