@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface ResponseStatus
ResponseStatusExceptionResolver
Modifier and Type | Required Element and Description |
---|---|
HttpStatus |
value
The status code to use for the response.
|
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)
Copyright © 2015. All rights reserved.