HttpExceptionInterface.php 527 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. namespace Michel\Framework\Core\Http\Exception;
  4. /**
  5. * @author Michel.F
  6. */
  7. interface HttpExceptionInterface extends \Throwable
  8. {
  9. /**
  10. * Returns the status code.
  11. *
  12. * @return int An HTTP response status code
  13. */
  14. public function getStatusCode(): int;
  15. /**
  16. * Returns the default message status.
  17. *
  18. * @return string
  19. */
  20. public function getDefaultMessage(): string;
  21. public function getContentType(): ?string;
  22. }