Spring MVC 异常、响应状态对应表
异常类型 | 相应状态码 |
ConversionNotSupportedException | 500(Web服务内部错误) |
HttpMediaTypeNotAcceptableException | 406(无和请求accept匹配的MIME类型) |
HttpMediaTypeNotSupportedException | 415(不支持的MIME类型) |
HttpMessageNotReadableException | 400(坏的请求) |
HttpMessageNotWritableException | 500 |
HttpRequestMethodNotSupportException | 405(不支持的请求方法) |
MissingServletRequestParameterException | 400 |
NoSuchRequestHandlingMethodException | 404(找不到匹配的资源) |
TypeMismatchException | 400 |