PHP :: Bug #43507 :: SOAPFault HTTP Status 500
| Bug #43507 | SOAPFault HTTP Status 500 - would like to be able to set the HTTP Status | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2007-12-05 19:05 UTC | Modified: | 2008-02-15 06:53 UTC |
|
||||||||||
| From: | ianils at gmail dot com | Assigned: | dmitry (profile) | |||||||||||
| Status: | Closed | Package: | SOAP related | |||||||||||
| PHP Version: | 5.2.5 | OS: | ||||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2007-12-05 19:05 UTC] ianils at gmail dot com
Description: ------------ When using php web services with Adobe Flex/Flash/AIR , error handling is a major pain. If I have a simple web service that throws a SOAPFault , the http status code that is returned with the message is 500 . This is a problem because the Flash Player ignores any message that has a status code > 200. ( Which is understandable , status code 500 could mean the server is really in trouble ) . I would very much like to be able to set the 'status code' that is returned when a SOAP Fault is thrown . The flash player is clever enough to recognize a SOAP Error and therefore able to run the correct code from with the flash app , however this is only possible when it gets a HTTP Status code that is not > 200. Reproduce code: --------------- This is a feature request to be able to set the HTTP Error code that is returned from a SOAP Fault . Its not necessarily a bug with a PHP , other languages offer similar workarounds.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2008-02-14 16:30 UTC] dmitry@php.net
[2008-02-15 05:49 UTC] ianils at gmail dot com
[2008-02-15 06:53 UTC] dmitry@php.net
[2010-12-15 15:11 UTC] wpoi at ya dot ru