jerryshao commented on code in PR #6865: URL: https://github.com/apache/gravitino/pull/6865#discussion_r2036339381
########## server-common/src/main/java/org/apache/gravitino/server/web/Utils.java: ########## @@ -48,6 +49,14 @@ public static <T> Response ok(T t) { return Response.status(Response.Status.OK).entity(t).type(MediaType.APPLICATION_JSON).build(); } + public static Response created() { + return Response.status(Response.Status.CREATED).type(MediaType.APPLICATION_JSON).build(); + } Review Comment: Shall we return OK or CREATED? In Gravitino, we don't use CREATED because it is a different HTTP code. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org