有没有办法从 API 网关返回自定义错误对象和状态代码?我获得了 200 状态。
var response = {
status: 400,
errors: [
{
code: "226",
message: "Password and password confirmation do not match."
}
]
}
context.done(JSON.stringify(response));
Run Code Online (Sandbox Code Playgroud)