src/HttpAssert.php
public static function assertExactErrorStatus(
        $status,
        $contentType,
        $content,
        array $error,
        bool $strict = true,
        string $message = ''
    ): Document
    {
        $expectedStatus = $error['status'] ?? null;

        if (!$expectedStatus) {
            throw new \InvalidArgumentException('Expecting error to have a status member.');
        }

        return self::assertExactError(
            $status,
            $contentType,
            $content,
            (int) $expectedStatus,
            $error,
            $strict,
            $message
        );
    }
public static function assertExactErrorStatus(
        $status,
        $contentType,
        $content,
        array $error,
        bool $strict = true,
        string $message = ''
    ): Document
    {
        $expectedStatus = $error['status'] ?? null;

        if (!$expectedStatus) {
            throw new \InvalidArgumentException('Expecting error to have a status member.');
        }

        return self::assertExactError(
            $status,
            $contentType,
            $content,
            (int) $expectedStatus,
            $error,
            $strict,
            $message
        );
    }
Assert the document contains an exact single error that matches the supplied error and has a status member.

@param $status
@param $contentType
@param $content
@param array $error
@param bool $strict
@param string $message
@return Document