feat(AddAppConnection): show meaningful error messages only

This commit is contained in:
Ali BARIN
2024-09-24 14:38:38 +00:00
parent 589fe0f5f3
commit d6e78a48a0
3 changed files with 19 additions and 15 deletions

View File

@@ -50,7 +50,7 @@ const errorHandler = (error, request, response, next) => {
},
};
response.status(200).json(httpErrorPayload);
response.status(422).json(httpErrorPayload);
}
if (error instanceof NotAuthorizedError) {