Moh*_*him 5 javascript amazon-web-services facebook-graph-api aws-appsync
这是从 App Sync AWS 返回的错误数据: { "data": { "getContentById": null }, "errors": [ { "path": [ "getContentById" ], "data": null, "errorType": " Lambda:Handled", "errorInfo": null, "locations": [ { "line": 1, "column": 2, "sourceName": null } ], "message": "未找到 ID" } ] }如何更改 lambda 函数中的 200 状态代码? 邮递员的屏幕截图
目前您无法在 AWS AppSync 中自定义错误状态代码。errorType建议的方法是在错误响应中使用。您可以使用速度映射模板中的$util.appendError或$util.error方法来定义错误类型。
| 归档时间: |
|
| 查看次数: |
1686 次 |
| 最近记录: |