Open shldhee opened 3 years ago
try { .../ } catch (err) { if (!err.response || err.response.status !== 404) { return error({ statusCode: 500, message: 'An error occurred' }) } return error({ statusCode: 404, message: 'Page not found' }) }