Skip to main content
1-Visitor
Aug 26, 2018 12:24 PM UTC
Question

Set HTTP status code and header in service for REST.

Hi,

Is there any way we can set http status code and header in javascript code in service?

We want to call that service through REST and wanted to have proper HTTP status code and header in response.

 

Core ThingWorx services gives proper HTTP status code e.g. 401 but we are not able to see how it is done for new services.

 

Any help/suggestions will be really helpful .

Thanks,

Vishwas