HTTPS status code for Fault message not displaying correctly
Hi Team,
We have a custom web service where we have configured a fault message with https status code 400. But we always get a status code 200 in response even for faulty input value.
Configuration:
Code:
import PS_PT:Integration:IRequestHandler;
class GetPymntDetails implements PS_PT:Integration:IRequestHandler
method GetPymntDetails();
method OnRequest(&_MSG As Message) Returns Message;
property integer OnErrorHttpResponseCode;
end-class;
/* constructor */
method GetPymntDetails
end-method;
method OnRequest
/+ &_MSG as Message +/
/+ Returns Message +/
/+ Extends/implements PS_PT:Integration:IRequestHandler.OnRequest +/
Local Message &response;
Local integer &x, &y, &cnt;
Local boolean &Error = False;
Local any &ret;
Local Rowset &rs1;
Local Compound &returnCom, &subdoc;