20 lines
330 B
PHP
20 lines
330 B
PHP
|
<?php
|
||
|
|
||
|
namespace Shaarli\Api\Exceptions;
|
||
|
|
||
|
/**
|
||
|
* Class ApiBadParametersException
|
||
|
*
|
||
|
* Invalid request exception, return a 400 HTTP code.
|
||
|
*/
|
||
|
class ApiBadParametersException extends ApiException
|
||
|
{
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function getApiResponse()
|
||
|
{
|
||
|
return $this->buildApiResponse(400);
|
||
|
}
|
||
|
}
|