feat(AddAppConnection): show meaningful error messages only
This commit is contained in:
@@ -50,7 +50,7 @@ const errorHandler = (error, request, response, next) => {
|
||||
},
|
||||
};
|
||||
|
||||
response.status(200).json(httpErrorPayload);
|
||||
response.status(422).json(httpErrorPayload);
|
||||
}
|
||||
|
||||
if (error instanceof NotAuthorizedError) {
|
||||
|
Reference in New Issue
Block a user