Language

InvokeResponse.Error(Int32, Object) Method

Definition

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.

Applies to