From 9cc58730dd1c0c765ac9462b9f84cdbd969f548b Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Fri, 11 Feb 2022 14:20:33 +0100 Subject: [PATCH] fix status codes --- UserEndpoint.ts | 4 ++-- UsersEndpoint.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UserEndpoint.ts b/UserEndpoint.ts index 4b112b9..32dd00b 100644 --- a/UserEndpoint.ts +++ b/UserEndpoint.ts @@ -53,7 +53,7 @@ export class UserEndpoint extends ApiEndpoint { headers: { "Content-Type": "application/scim+json", }, - status: HttpStatusCode.FOUND, + status: HttpStatusCode.OK, content: user, }; } @@ -100,7 +100,7 @@ export class UserEndpoint extends ApiEndpoint { headers: { "Content-Type": "application/scim+json", }, - status: HttpStatusCode.FOUND, + status: HttpStatusCode.OK, content: user, }; } diff --git a/UsersEndpoint.ts b/UsersEndpoint.ts index c374cbb..55a524b 100644 --- a/UsersEndpoint.ts +++ b/UsersEndpoint.ts @@ -58,7 +58,7 @@ export class UsersEndpoint extends ApiEndpoint { headers: { "Content-Type": "application/scim+json", }, - status: HttpStatusCode.FOUND, + status: HttpStatusCode.OK, content: list, }; }