如果在使用header()之前使用http_response_code(),则PHP返回由header()设置的HTTP,并忽略任何http_response_code()。但我在等HTTP/1.1 503 Service Unavailable。日志文件包含一个预期的数据,它显示http_response_code返回的状态<
每当我在PHP应用程序中抛出一个SoapFault时,HTTP代码就会被设置为HTTP/1.1 500 Internal Service Error。即使我在抛出http_response_code()或header()之前使用SoapFault将状态代码设置为不同的东西,也会发生这种情况。在抛出So