InvokeResponse.Error(Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an error invoke response with the specified status code and optional body.
public static Microsoft.Teams.Apps.InvokeResponse Error(int status, object? body = default);
static member Error : int * obj -> Microsoft.Teams.Apps.InvokeResponse
Public Shared Function Error (status As Integer, Optional body As Object = Nothing) As InvokeResponse
Parameters
- status
- Int32
The HTTP error status code.
- body
- Object
Optional error details.
Returns
An InvokeResponse with the specified error status.