ContentManageForbidden.php 408 B

1234567891011121314151617181920
  1. <?php
  2. namespace Modules\ContentManage\Exceptions;
  3. use Catch\Enums\Code;
  4. use Catch\Exceptions\CatchException;
  5. use Symfony\Component\HttpFoundation\Response;
  6. class ContentManageForbidden extends CatchException
  7. {
  8. protected $message = 'permission forbidden';
  9. protected $code = Code::PERMISSION_FORBIDDEN;
  10. public function statusCode(): int
  11. {
  12. return Response::HTTP_FORBIDDEN;
  13. }
  14. }