src/Concerns/HasHttpAssertions.php
public function assertExactErrors(int $status, array $errors, bool $strict = true): self
    {
        $this->document = HttpAssert::assertExactErrors(
            $this->getStatusCode(),
            $this->getContentType(),
            $this->getContent(),
            $status,
            $errors,
            $strict
        );

        return $this;
    }
public function assertExactErrors(int $status, array $errors, bool $strict = true): self
    {
        $this->document = HttpAssert::assertExactErrors(
            $this->getStatusCode(),
            $this->getContentType(),
            $this->getContent(),
            $status,
            $errors,
            $strict
        );

        return $this;
    }
Assert the HTTP status contains the supplied exact errors.

@param int $status
@param array $errors
@param bool $strict
@return $this