Response

The response object represents the HTTP response that an Yap app sends when it gets an HTTP request.

interface Response {
/** body */
body?: any;
/** statusCode */
statusCode?: number;
/** headers */
headers?: { [key: string]: any };
}

Yap use Amazon API Gateway API Request and Response Data Mapping Reference