Skip to content

Commit

Permalink
403 -> 401
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Mar 27, 2024
1 parent ba59558 commit 325779e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/app/api/server/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class APIClass<TBasePath extends string = ''> extends Restivus {

public unauthorized<T extends string>(msg?: T): UnauthorizedResult<T> {
return {
statusCode: 403,
statusCode: 401,
body: {
success: false,
error: msg || 'unauthorized',
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/api/server/definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type FailureResult<T, TStack = undefined, TErrorType = undefined, TErrorD
};

export type UnauthorizedResult<T> = {
statusCode: 403;
statusCode: 401;
body: {
success: false;
error: T | 'unauthorized';
Expand Down

0 comments on commit 325779e

Please sign in to comment.