aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/exceptions/ApiBadParametersException.php
blob: e5cc19ea62725f394de8d94045fb40c141625e69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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);
    }
}