88
88
* </tr>
89
89
* <tr class="altColor">
90
90
* <td><p>MissingServletRequestParameterException</p></td>
91
- * <td><p>500 (SC_INTERNAL_SERVER_ERROR )</p></td>
91
+ * <td><p>400 (SC_BAD_REQUEST )</p></td>
92
92
* </tr>
93
93
* <tr class="rowColor">
94
94
* <td><p>ServletRequestBindingException</p></td>
@@ -364,7 +364,8 @@ protected ModelAndView handleServletRequestBindingException(ServletRequestBindin
364
364
/**
365
365
* Handle the case when a {@link org.springframework.web.bind.WebDataBinder} conversion cannot occur.
366
366
* <p>The default implementation sends an HTTP 500 error, and returns an empty {@code ModelAndView}.
367
- * Alternatively, a fallback view could be chosen, or the TypeMismatchException could be rethrown as-is.
367
+ * Alternatively, a fallback view could be chosen, or the ConversionNotSupportedException could be
368
+ * rethrown as-is.
368
369
* @param ex the ConversionNotSupportedException to be handled
369
370
* @param request current HTTP request
370
371
* @param response current HTTP response
@@ -401,7 +402,7 @@ protected ModelAndView handleTypeMismatch(TypeMismatchException ex,
401
402
* Handle the case where a {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
402
403
* cannot read from a HTTP request.
403
404
* <p>The default implementation sends an HTTP 400 error, and returns an empty {@code ModelAndView}.
404
- * Alternatively, a fallback view could be chosen, or the HttpMediaTypeNotSupportedException could be
405
+ * Alternatively, a fallback view could be chosen, or the HttpMessageNotReadableException could be
405
406
* rethrown as-is.
406
407
* @param ex the HttpMessageNotReadableException to be handled
407
408
* @param request current HTTP request
@@ -422,7 +423,7 @@ protected ModelAndView handleHttpMessageNotReadable(HttpMessageNotReadableExcept
422
423
* {@linkplain org.springframework.http.converter.HttpMessageConverter message converter}
423
424
* cannot write to a HTTP request.
424
425
* <p>The default implementation sends an HTTP 500 error, and returns an empty {@code ModelAndView}.
425
- * Alternatively, a fallback view could be chosen, or the HttpMediaTypeNotSupportedException could
426
+ * Alternatively, a fallback view could be chosen, or the HttpMessageNotWritableException could
426
427
* be rethrown as-is.
427
428
* @param ex the HttpMessageNotWritableException to be handled
428
429
* @param request current HTTP request
0 commit comments