We are writing a REST call in web service for a 3rd party to access some data.
I am using $webinfo("status") to return 201 or 204 for successes and 400 for failures. The 3rd party is complaining that:-
- The status is showing twice in the response line.
- There is no indication of a reason for failure.
I have tried using $webinfo("statusreason") to both change the duplication and/or return the reasons for failure, but the documentation indicates it's only returned if the status is 200.
Is there any way to fit the USP output to the 3rd party's perceived 'standard' for REST services (i.e. status only once in the response line, followed by the reason for failure in case of a failure?
Regards,
Iain
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------



