We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f8f740 commit 1254f3fCopy full SHA for 1254f3f
Modules/CippEntrypoints/CippEntrypoints.psm1
@@ -144,6 +144,16 @@ function Receive-CippHttpTrigger {
144
$Response.Body = $Response.Body | ConvertTo-Json -Depth 20 -Compress
145
}
146
Push-OutputBinding -Name Response -Value ([HttpResponseContext]$Response)
147
+ } else {
148
+ Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
149
+ StatusCode = [HttpStatusCode]::InternalServerError
150
+ Body = @{
151
+ error = @{
152
+ code = 'InternalServerError'
153
+ message = 'An error occurred processing the request'
154
+ }
155
156
+ })
157
158
159
return
0 commit comments