Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

添加资源失败的请求返回什么http状态码?

添加资源失败的请求返回什么http状态码?

找不到合适的

4XX不对 请求没有错误
5XX也不对 服务器没有错误


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

如果是 参数 不正确导致的资源添加失败,那么就是 400 Bad Request
如果是 服务器端代码、环境原因 添加资源失败,那么就是 500 Internal Server Error


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...