cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

PTC REST Service call return status code is always 200 OK, this should be different based on tasks

PTC REST Service call return status code is always 200 OK, this should be different based on tasks

PTC REST service call return status code is always 200 OK, it is considering the status code returned from the implementation of the service.  Request is to have more detailed response from these calls (E.g. 500 error code).  Currently noticing it is returning 200 OK because service is executing fully but what service was trying to accomplish was unsuccessful.

5 Comments
bbeuckSIG
15-Moonstone

I assume you are talking about ContentLoaderFunctions and have the same issue like here. We are also struggeling with that.

Abhiram
8-Gravel

Content loader functions are being called in ThingWorx service and the status code of that service wont be dependent on content loader function output. If you want status codes of content loader function, you have to make custom extension which will capture complete request info along with status code and headers.

cbaldwin
13-Aquamarine
Status changed to: Implementation In Progress

Improved the PostJSONPostTextPostXMLPostMultipartLoadJSONLoadXMLLoadTextPutJSONPutText, and PutXML REST APIs to return the responseHeadersresponseStatus, and statusCode in the JSON body as part of the ThingWorx 9.2 release (Targeted June 2021).

olivierlp
Community Manager
Status changed to: Under Consideration

Will consider for future release.

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.