Support Article
pyStatusValue displays 'good' instead of the HTTP response code
SA-69952
Summary
In earlier versions of Pega, when the REST Connector is run, the pyStatusValue property is set to the HTTP response code.
In Pega 7.4, pyStatusValue property is not set to the HTTP response code. Instead, the property is set to 'good' on a success or 'error' on a failure.
Error Messages
Not Applicable
Steps to Reproduce
Run a REST Connector.
Root Cause
Pega 7.4 has two similar but un-identical fields for a response status:
- pyStatusValue - This a generic value that is returned for all connectors. It provides a human readable code such as 'good' for a correct response.
- pyHttpResponseValue - This returns the actual three-digit HTTP response code.
Resolution
Perform the following local-change to obtain the HTTP response code:
Use pyHttpResponseValue instead of pyStatusValue.
Published February 23, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.