API网关 APIG-如何获取API网关错误返回信息?

时间:2023-11-01 16:15:40

如何获取API网关错误返回信息?

当API请求到达网关后,网关返回请求结果信息。查看返回结果的Body信息如下。

{"error_code": "APIG.0101","error_msg": "API not exist or not published to environment","request_id": "acbc548ac6f2a0dbdb9e3518a7c0ff84"}
  • “error_code”表示错误码。
  • “error_msg”表示报错原因。
support.huaweicloud.com/apig_faq/apig-faq-180307001.html