Rest easy response status + body

Viewed 14602

I have following method in my rest service:

    @POST
    @Path("/create")
    @ResponseStatus(HttpStatus.CREATED)
    @Consumes(MediaType.WILDCARD)
    public String create( .... ) {.... return json;}

so I want to get a response with json in body and status code CREATED.

The problem is: I can't get a response the CREATED status.

The status code is allways OK, so it seems that "@ResponseStatus(HttpStatus.CREATED)" is just ignored...

Can somebody help me with it?

I'm using hibernate 4.1, spring 3.1 and resteasy 2.3

1 Answers
Related