github.com/avenga/couper@v1.12.2/server/testdata/integration/error_handler/06_couper.hcl (about) 1 server { 2 api { 3 endpoint "/anything" { 4 proxy { 5 backend { 6 origin = "${env.COUPER_TEST_BACKEND_ADDR}" 7 8 openapi { 9 file = "02_schema.yaml" 10 } 11 } 12 } 13 } 14 15 error_handler "backend_openapi_validation" { 16 response { 17 status = 418 18 json_body = { 19 req_path = backend_requests.default.path 20 resp_status = backend_responses.default.status 21 resp_json_body_query = backend_responses.default.json_body.Query 22 resp_ct = backend_responses.default.headers.content-type 23 } 24 } 25 } 26 } 27 }