src/HttpAssert.php
public static function assertHasExactError(
        $status,
        $contentType,
        $content,
        int $expectedStatus,
        array $error,
        bool $strict = true,
        string $message = ''
    ): Document
    {
        if (empty($error)) {
            $error = ['status' => (string) $status];
        }

        return self::assertJsonApi($status, $contentType, $content, $expectedStatus, $message)
            ->assertHasExactError($error, $strict, $message);
    }
public static function assertHasExactError(
        $status,
        $contentType,
        $content,
        int $expectedStatus,
        array $error,
        bool $strict = true,
        string $message = ''
    ): Document
    {
        if (empty($error)) {
            $error = ['status' => (string) $status];
        }

        return self::assertJsonApi($status, $contentType, $content, $expectedStatus, $message)
            ->assertHasExactError($error, $strict, $message);
    }
Assert the HTTP message contains the supplied error within its errors member.

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