@ResponseStatus

The {@link oaj.http.annotation.ResponseStatus @ResponseStatus} annotation annotation can be applied to @RestMethod-annotated parameters to denote them as an HTTP response status codes.

- {@link oaj.http.annotation.ResponseStatus ResponseStatus}

This can only be applied to parameters of the {@link oaj.Value} class with an {@link java.lang.Integer} type.

##### Examples:

// Defined on parameter. @RestMethod(name="GET", path="/user/login") public void login( @FormData("username") String username, @FormData("password") String password, @ResponseStatus Value<Integer> status ) { if (! isValid(username, password)) status.set(401); }