Polish @ResponseStatus javadoc and StatusAssertionTests

This commit is contained in:
Sam Brannen
2021-06-08 18:47:04 +02:00
parent f3db6b996d
commit 000b6a7e95
3 changed files with 83 additions and 40 deletions

View File

@@ -79,6 +79,8 @@ public @interface ResponseStatus {
/**
* The <em>reason</em> to be used for the response.
* <p>Defaults to an empty string which will be ignored. Set the reason to a
* non-empty value to have it used for the response.
* @see javax.servlet.http.HttpServletResponse#sendError(int, String)
*/
String reason() default "";