public function badRequest($message = 'Bad Request', $errors = null): void
    {
        $this->setStatusCode(400);
        $this->setMessage($message);
        $this->setErrors($errors);

        throw new ApiException($this);
    }
public function badRequest($message = 'Bad Request', $errors = null): void
    {
        $this->setStatusCode(400);
        $this->setMessage($message);
        $this->setErrors($errors);

        throw new ApiException($this);
    }
public function badRequest ( $ message = 'Bad Request' , $ errors = null ) : void { $ this -> setStatusCode ( 400 ) ; $ this -> setMessage ( $ message ) ; $ this -> setErrors ( $ errors ) ; throw new ApiException ( $ this ) ; }
Client errors - Bad Request

The server cannot or will not process the request due to an apparent client error (e.g., malformed request
syntax, too large size, invalid request message framing, or deceptive request routing).

@param string $message
@param null   $errors

@throws ApiException
Client errors - Bad Request