EllipseSynergie\ApiResponse\AbstractResponse::errorUnwillingToProcess PHP Method

errorUnwillingToProcess() public method

Generates a Response with a 431 HTTP header and a given message.
public errorUnwillingToProcess ( string $message = 'Server is unwilling to process the request', array $headers = [] ) : mixed
$message string
$headers array
return mixed
    public function errorUnwillingToProcess($message = 'Server is unwilling to process the request', array $headers = [])
    {
        return $this->setStatusCode(431)->withError($message, static::CODE_UNWILLING_TO_PROCESS, $headers);
    }