change response status code to 410
This commit is contained in:
parent
8e73fd012c
commit
f0ab000415
@ -9,7 +9,7 @@ export const TimeLockVerify: RequestHandler = async (req, res, next) => {
|
|||||||
|
|
||||||
|
|
||||||
if (timeHr >= timeLock[0] || timeHr <= timeLock[1]) {
|
if (timeHr >= timeLock[0] || timeHr <= timeLock[1]) {
|
||||||
res.status(401).json({ status: IDoorStatus.TIME_LOCK, msg: 'Sorry! This door is locked at this hour, try again later' });
|
res.status(410).json({ status: IDoorStatus.TIME_LOCK, msg: 'Sorry! This door is locked at this hour, try again later' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user