MCPcopy Index your code
hub / github.com/zalando/skipper / ExampleGetInvalidResponseStatus

Function ExampleGetInvalidResponseStatus

script/script_test.go:645–655  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

643const GetInvalidResponseStatus = `function response(ctx, params); ctx.response.status_code = "invalid"; end`
644
645func ExampleGetInvalidResponseStatus() {
646 runExample(&testContext{
647 script: GetInvalidResponseStatus,
648 })
649 // Output:
650 // Error calling response from function response(ctx, params); ctx.response.status_code = "invalid"; end: <script>:1: unsupported status_code type string, need a number
651 // stack traceback:
652 // [G]: in function (anonymous)
653 // <script>:1: in main chunk
654 // [G]: ?
655}
656
657const SetResponseInvalidField = `function response(ctx, params); ctx.response.invalid_field = "test"; end`
658

Callers

nothing calls this directly

Calls 1

runExampleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…