diff --git a/src/helper/serve.utils.ts b/src/helper/serve.utils.ts index 94c80541..39796cb9 100644 --- a/src/helper/serve.utils.ts +++ b/src/helper/serve.utils.ts @@ -155,7 +155,7 @@ async function requestToOriginalSource(req, res, domain, themeId) { // If there's an error, pass it to the client if (error?.response) { // If there is a response from the server - res.status(error?.response?.status).send(error?.response?.data); + res.status(error?.response?.status ?? 400).send(error?.response?.data); } else if (error?.request) { // If the request was made but no response was received res.status(500).send('No response from server');