src/HttpAssert.php
public static function assertStatusCode(
        $status,
        int $expected,
        $content = null,
        string $message = ''
    ): void
    {
        PHPUnitAssert::assertThat(
            $status,
            new HttpStatusIs($expected, $content),
            $message
        );
    }
public static function assertStatusCode(
        $status,
        int $expected,
        $content = null,
        string $message = ''
    ): void
    {
        PHPUnitAssert::assertThat(
            $status,
            new HttpStatusIs($expected, $content),
            $message
        );
    }
Assert that the HTTP status matches the expected status.

This assertion will print any JSON API errors in the supplied content if
the HTTP status does not match. This is useful for understanding why the status
is not the expected status when an error has occurred.

@param $status
@param int $expected
@param mixed|null $content
@param string $message
@return void