Updated on 2025-01-10 GMT+08:00

x-apigateway-responses

Meaning: Custom response.

Scope of effect: Operation Object (2.0)/Operation Object (3.0)

Example:

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