ApiBadParametersException.php 330 B

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