Return HTTPStatusCodes when calling a script

Hi.

I have a script that when successful returns a json with relevant information when called from ServiceNow. Is there a way to send different HTTPStatusCodes depending on how successful the script is?

Example 1:

Script is successful and returns 200 OK and the result or 204 NoContent with no result

Example 2:

Sciprt is unsuccessful and returns 409 Conflict.

/Henrik

PS. I'm running Identity Manager 9.2

Parents Reply Children
No Data