jpsider/RestPS

Response/Return values to API call

Closed this issue · 3 comments

Hi there -

Thanks for making this module - very useful! I am trying to make a custom failure response if my script meets a certain criteria. Is there any support/examples for returning a non-standard failure response?

what would you expect the response to look like?

You should be able to achieve this by these two settings in your script:
$script:StatusCode
$script:StatusDescription