[next] Add statusCode to err object in NextContext (#40204)

Maintenance fix for `next@^8.0.0`.
This commit is contained in:
Resi Respati
2019-11-07 09:26:05 -08:00
committed by Nathan Shively-Sanders
parent b59a18caf3
commit 5b30992fd5
+1 -1
View File
@@ -89,7 +89,7 @@ declare namespace next {
/** Fetch Response object (client only) - from https://developer.mozilla.org/en-US/docs/Web/API/Response */
jsonPageRes?: NodeResponse;
/** Error object if any error is encountered during the rendering */
err?: Error;
err?: Error & { statusCode?: number };
}
/**