|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface ResponseStatusMarks a method or exception class with the status code and reason that should be returned. The status code is applied to the HTTP response when the handler method is invoked, or whenever said exception is thrown.
ResponseStatusExceptionResolver| Required Element Summary | |
|---|---|
HttpStatus |
value
The status code to use for the response. |
| Optional Element Summary | |
|---|---|
String |
reason
The reason to be used for the response. |
| Element Detail |
|---|
public abstract HttpStatus value
HttpServletResponse.setStatus(int)public abstract String reason
If this element is not set, it will default to the standard status message for the status code.
HttpServletResponse.sendError(int, String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||