While using router.catch()
with serveStatic
static error page, I’m trying to pass error message within .catch statement to the client via cookie header, setResponseHeader('set-cookie', 'err=${res:body}')
, but this returns null. Is there any other way to retrieve error message from crashed route?