84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
在客户端请求到达服务器后,我会进行操作,如果请求数据操作失败(保存到数据库失败),我想返回客户端的状态码为400.这时候却一直是200,怎么修改状态码呢
认证0级讲师
You can set the response result in the header, for example
header(‘HTTP/1.1 404 Not Found’);
You can set the response result in the header, for example