diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index 0ae2400..ea71366 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -33,6 +33,7 @@ app.post('/login', async (req, res) => { res.json(authResponse.data); } catch (error) { console.error(error); + res.status(401).json({error:error}); } });