Fix #46621 - include status code in cache (#47096)
Fixes #46621
As explained here https://github.com/vercel/next.js/issues/46621,
> Using fetch to retrieve data inside a page on server side, the
response status code is incorrect when simply loading/reloading the
page. It looks like nextjs is caching the response without taking into
account the status code.
In following code we do not add status code information to the cache.
https://github.com/vercel/next.js/blob/canary/packages/next/src/server/lib/patch-fetch.ts#L189-L206
However we are accessing this status code in
https://github.com/vercel/next.js/blob/canary/packages/next/src/server/lib/patch-fetch.ts#L247-L250
---------
Co-authored-by: JJ Kasper <jj@jjsweb.site>