#43507 [Opn->Asn]: SOAPFault HTTP Status 500 - would like to be able to set the HTTP Status

From: Date: Fri, 08 Feb 2008 08:34:48 +0000
Subject: #43507 [Opn->Asn]: SOAPFault HTTP Status 500 - would like to be able to set the HTTP Status
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122092@lists.php.net to get a copy of this message
ID: 43507 Updated by: dmitry@php.net Reported By: ianils at gmail dot com -Status: Open +Status: Assigned Bug Type: SOAP related PHP Version: 5.2.5 -Assigned To: +Assigned To: dmitry Previous Comments: ------------------------------------------------------------------------ [2007-12-05 19:05:11] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43507&edit=1

« previous php.bugs (#122092) next »