You show in the Swagger yaml file how you might document error codes other than 200, but you don't show how to generate these from the PowerShell Azure Function. Since the PowerShell code only outputs to a file, there's no obvious way to generate, e.g. a 404 or similar value to indicate that the API request failed. I didn't find how to do this either.
You show in the Swagger yaml file how you might document error codes other than 200, but you don't show how to generate these from the PowerShell Azure Function. Since the PowerShell code only outputs to a file, there's no obvious way to generate, e.g. a 404 or similar value to indicate that the API request failed. I didn't find how to do this either.