Skip to content

Commit b38b84f

Browse files
committed
Changed return code
Signed-off-by: Owais <[email protected]>
1 parent 005029c commit b38b84f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/org/opensearch/flowframework/util/ParseUtils.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,7 @@ public static void onGetWorkflowResponse(
509509
} else {
510510
logger.debug("User: " + requestUser.getName() + " does not have permissions to access workflow: " + workflowId);
511511
listener.onFailure(
512-
new FlowFrameworkException(
513-
"User does not have permissions to access workflow: " + workflowId,
514-
RestStatus.BAD_REQUEST
515-
)
512+
new FlowFrameworkException("User does not have permissions to access workflow: " + workflowId, RestStatus.FORBIDDEN)
516513
);
517514
}
518515
} catch (Exception e) {

0 commit comments

Comments
 (0)