It’d only be an exception if an unhandled exception occurred
It’d only be an exception if an unhandled exception occurred
ok as it didn't encounter any issues but the response status is 500.try/catch then you'd get an outcome of exception
oktry/catchexceptionexport default <ExportedHandler> {
fetch() {
return new Response(null, {
status: 500,
});
},
};export default <ExportedHandler> {
fetch() {
try {
throw new Error()
} catch {
return new Response(null, {
status: 500,
})
}
},
};