更新时间:2025-01-10 GMT+08:00

x-apigateway-responses

含义:自定义网关响应类型。

作用域Operation Object(2.0)/Operation Object(3.0)

示例

x-apigateway-responses:
  default:
    ACCESS_DENIED:
      status: 403
      body:
        application/json: >-
          {"error_code":"$context.error.code","error_msg":"Access
          denied","request_id":"$context.requestId"}