chore: update status code (#20443)
* chore: update status code * chore: update status code * fix: error unhandled
This commit is contained in:
1 parent
d24a93962f
commit
aaa39cccf8
3 files changed
+10
-18
No files matched your search
@@ -95,7 +95,7 @@ function getStatusCode(cause: Error): number {
|
||||
case ErrorCode.AvailabilityNotFoundInSchedule:
|
||||
return 400;
|
||||
case ErrorCode.CancelledBookingsCannotBeRescheduled:
|
||||
return 403;
|
||||
return 400;
|
||||
case ErrorCode.NoAvailableUsersFound:
|
||||
case ErrorCode.HostsUnavailableForBooking:
|
||||
case ErrorCode.PaymentCreationFailure:
|
||||
|
||||
Reference in new issue
Block a user