vike-lite 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server.mjs +1 -0
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -174,6 +174,7 @@ async function renderPage(req) {
|
|
|
174
174
|
if (error instanceof AbortRender) {
|
|
175
175
|
if (isJsonRequest) return Response.json({
|
|
176
176
|
is404: error.statusCode === 404,
|
|
177
|
+
is500: error.statusCode >= 500,
|
|
177
178
|
isError: true,
|
|
178
179
|
reason: error.reason
|
|
179
180
|
}, { status: error.statusCode });
|