We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 120c9a7 commit c5d06cdCopy full SHA for c5d06cd
apps/meteor/app/api/server/api.ts
@@ -719,11 +719,13 @@ export class APIClass<TBasePath extends string = ''> extends Restivus {
719
switch (e.error) {
720
case 'error-too-many-requests':
721
return API.v1.tooManyRequests(typeof e === 'string' ? e : e.message);
722
+ case 'unauthorized':
723
case 'error-unauthorized':
724
if (applyBreakingChanges) {
725
return API.v1.unauthorized(typeof e === 'string' ? e : e.message);
726
}
727
return API.v1.forbidden(typeof e === 'string' ? e : e.message);
728
+ case 'forbidden':
729
case 'error-forbidden':
730
731
0 commit comments