(req, res, next)
| 241 | logger.error(`Error while cancelling the ${userState.OOO} Status : ${error}`); |
| 242 | if (error instanceof Forbidden) { |
| 243 | return res.status(403).json({ |
| 244 | statusCode: 403, |
| 245 | error: "Forbidden", |
| 246 | message: error.message, |
| 247 | }); |
| 248 | } else if (error instanceof NotFound) { |
| 249 | return res.status(404).json({ |
| 250 | statusCode: 404, |
| 251 | error: "NotFound", |
| 252 | message: error.message, |
nothing calls this directly
no test coverage detected