工作中常见的状态码错误
200 响应成功
404 请求地址错误 @PathVariable 会出现这种错误
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri May 22 16:39:56 CST 2020
There was an unexpected error (type=Not Found, status=404).
No message available
500 应用程序错误
504 网关超时 服务器无响应
301 永久重定向
302 暂时重定向
405 不支持的请求方法
400 请求参数异常 通常 @RequestParam会出现这个错误
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri May 22 16:37:41 CST 2020
There was an unexpected error (type=Method Not Allowed, status=405).
Request method 'GET' not supported