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

Set HTTP status code and header in service for REST.

Highlighted
Level 4

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