Skip to content

Commit c5d06cd

Browse files
committed
..
1 parent 120c9a7 commit c5d06cd

File tree

1 file changed

+2
-0
lines changed
  • apps/meteor/app/api/server

1 file changed

+2
-0
lines changed

apps/meteor/app/api/server/api.ts

+2
Original file line numberDiff line numberDiff line change
@@ -719,11 +719,13 @@ export class APIClass<TBasePath extends string = ''> extends Restivus {
719719
switch (e.error) {
720720
case 'error-too-many-requests':
721721
return API.v1.tooManyRequests(typeof e === 'string' ? e : e.message);
722+
case 'unauthorized':
722723
case 'error-unauthorized':
723724
if (applyBreakingChanges) {
724725
return API.v1.unauthorized(typeof e === 'string' ? e : e.message);
725726
}
726727
return API.v1.forbidden(typeof e === 'string' ? e : e.message);
728+
case 'forbidden':
727729
case 'error-forbidden':
728730
if (applyBreakingChanges) {
729731
return API.v1.forbidden(typeof e === 'string' ? e : e.message);

0 commit comments

Comments
 (0)