Skip to content

Commit bf64161

Browse files
committed
403 -> 401
1 parent 9ac084b commit bf64161

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export class APIClass<TBasePath extends string = ''> extends Restivus {
297297

298298
public unauthorized<T extends string>(msg?: T): UnauthorizedResult<T> {
299299
return {
300-
statusCode: 403,
300+
statusCode: 401,
301301
body: {
302302
success: false,
303303
error: msg || 'unauthorized',

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export type FailureResult<T, TStack = undefined, TErrorType = undefined, TErrorD
2727
};
2828

2929
export type UnauthorizedResult<T> = {
30-
statusCode: 403;
30+
statusCode: 401;
3131
body: {
3232
success: false;
3333
error: T | 'unauthorized';

0 commit comments

Comments
 (0)