ApiInternalException.php 310 B

12345678910111213141516171819
  1. <?php
  2. namespace Shaarli\Api\Exceptions;
  3. /**
  4. * Class ApiInternalException
  5. *
  6. * Generic exception, return a 500 HTTP code.
  7. */
  8. class ApiInternalException extends ApiException
  9. {
  10. /**
  11. * @inheritdoc
  12. */
  13. public function getApiResponse()
  14. {
  15. return $this->buildApiResponse(500);
  16. }
  17. }