chore: update status code (#20443)

* chore: update status code

* chore: update status code

* fix: error unhandled
This commit is contained in:
Udit Takkar authored and GitHub committed 2025-04-01 10:08:14 -03:00
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: