github.com/avenga/couper@v1.12.2/server/testdata/integration/error_handler/08_couper.hcl (about) 1 server { 2 api { 3 endpoint "/anything" { 4 request "r" { 5 url = "${env.COUPER_TEST_BACKEND_ADDR}/" 6 backend { 7 timeout = "1ns" 8 } 9 body = "foo" 10 } 11 12 proxy { 13 backend { 14 origin = "${env.COUPER_TEST_BACKEND_ADDR}" 15 } 16 } 17 } 18 19 error_handler "backend_timeout" { 20 response { 21 status = 418 22 json_body = { 23 resp_json_status = backend_responses.default.json_body.ResponseStatus 24 } 25 } 26 } 27 } 28 }