How can i return the result of create method in rest api and also 201 status code? In this code the status code is 200 how can i change it to 201?
Path("/student") public class MyRestApi{ @Path("/create") public Response create(){ Student student = new Student; //insert in data source Return Response.ok(student).build(); }}