aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/JsonApi/Errors/NotAcceptableException.php
blob: dddb377da3f6c5867731392325b6a85cb85ab329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

namespace JsonApi\Errors;

use Neomerx\JsonApi\Schema\Error;
use Neomerx\JsonApi\Exceptions\JsonApiException;

class NotAcceptableException extends JsonApiException
{
    public function __construct()
    {
        $error = new Error(null, null, null, '406', null, 'Not Acceptable Error');
        parent::__construct($error, 406);
    }
}