EllipseSynergie\ApiResponse\AbstractResponse::withError PHP Метод

withError() публичный Метод

Response for errors
public withError ( string $message, string $errorCode, array $headers = [] ) : mixed
$message string
$errorCode string
$headers array
Результат mixed
    public function withError($message, $errorCode, array $headers = [])
    {
        return $this->withArray(['error' => ['code' => $errorCode, 'http_code' => $this->statusCode, 'message' => $message]], $headers);
    }