You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/10/06 03:49:02 UTC
[apisix] branch master updated: fix: Update error message when
Route doesn't exist (#2304)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 720d135 fix: Update error message when Route doesn't exist (#2304)
720d135 is described below
commit 720d135fd28677ae80a7922d959ba86e978df727
Author: L <li...@icloud.com>
AuthorDate: Tue Oct 6 11:48:52 2020 +0800
fix: Update error message when Route doesn't exist (#2304)
Fixes #2302
Co-authored-by: YuanSheng Wang <me...@gmail.com>
---
apisix/init.lua | 2 +-
t/core/etcd.t | 10 +++++-----
t/debug/hook.t | 2 +-
t/node/filter_func.t | 2 +-
t/node/global-rule.t | 4 ++--
t/node/hosts.t | 4 ++--
t/node/invalid-route.t | 2 +-
t/node/invalid-service.t | 2 +-
t/node/invalid-upstream.t | 2 +-
t/node/merge-route.t | 2 +-
t/node/not-exist-upstream.t | 2 +-
t/node/remote-addr-ipv6.t | 6 +++---
t/node/remote-addr.t | 4 ++--
t/node/remote_addrs.t | 2 +-
t/node/route-domain-with-local-dns.t | 2 +-
t/node/route-domain.t | 2 +-
t/node/route-filter-func.t | 2 +-
t/node/route-host.t | 6 +++---
t/node/route-parameter-uri.t | 10 +++++-----
t/node/sanity-radixtree.t | 4 ++--
t/node/upstream-domain.t | 2 +-
t/node/upstream-ipv6.t | 2 +-
t/node/upstream-retries.t | 2 +-
t/node/upstream.t | 2 +-
t/node/vars.t | 16 ++++++++--------
t/node/wildcard-host.t | 4 ++--
t/router/radixtree-host-uri.t | 10 +++++-----
t/router/radixtree-uri-host.t | 6 +++---
t/router/radixtree-uri-multiple.t | 2 +-
t/router/radixtree-uri-sanity.t | 10 +++++-----
30 files changed, 64 insertions(+), 64 deletions(-)
diff --git a/apisix/init.lua b/apisix/init.lua
index cc7902b..3d9ffea 100644
--- a/apisix/init.lua
+++ b/apisix/init.lua
@@ -372,7 +372,7 @@ function _M.http_access_phase()
local route = api_ctx.matched_route
if not route then
return core.response.exit(404,
- {error_msg = "failed to match any routes"})
+ {error_msg = "404 Route Not Found"})
end
if route.value.service_protocol == "grpc" then
diff --git a/t/core/etcd.t b/t/core/etcd.t
index 197f7e9..7dc3a38 100644
--- a/t/core/etcd.t
+++ b/t/core/etcd.t
@@ -104,8 +104,8 @@ Host: foo.com
--- error_code eval
[201, 200, 200, 200, 200, 404, 201, 200, 200, 200, 200, 404]
--- response_body eval
-["passed\n", "hello world\n", "passed\n", "hello world\n", "passed\n", "{\"error_msg\":\"failed to match any routes\"}\n",
-"passed\n", "hello world\n", "passed\n", "hello world\n", "passed\n", "{\"error_msg\":\"failed to match any routes\"}\n"]
+["passed\n", "hello world\n", "passed\n", "hello world\n", "passed\n", "{\"error_msg\":\"404 Route Not Found\"}\n",
+"passed\n", "hello world\n", "passed\n", "hello world\n", "passed\n", "{\"error_msg\":\"404 Route Not Found\"}\n"]
--- no_error_log
[error]
--- timeout: 5
@@ -227,8 +227,8 @@ Host: foo.com
--- error_code eval
[201, 200, 200, 404, 200, 200, 404, 201, 200, 200, 404, 200, 200, 404]
--- response_body eval
-["passed\n", "hello world\n", "passed\n", "{\"error_msg\":\"failed to match any routes\"}\n", "ok\n", "passed\n", "{\"error_msg\":\"failed to match any routes\"}\n",
-"passed\n", "hello world\n", "passed\n", "{\"error_msg\":\"failed to match any routes\"}\n", "hello1 world\n", "passed\n", "{\"error_msg\":\"failed to match any routes\"}\n"]
+["passed\n", "hello world\n", "passed\n", "{\"error_msg\":\"404 Route Not Found\"}\n", "ok\n", "passed\n", "{\"error_msg\":\"404 Route Not Found\"}\n",
+"passed\n", "hello world\n", "passed\n", "{\"error_msg\":\"404 Route Not Found\"}\n", "hello1 world\n", "passed\n", "{\"error_msg\":\"404 Route Not Found\"}\n"]
--- no_error_log
[error]
--- timeout: 5
@@ -329,7 +329,7 @@ Host: foo.com
--- error_code eval
[201, 200, 201, 200, 200, 200, 200, 404]
--- response_body eval
-["passed\n", "/print_uri_20\n", "passed\n", "/print_uri_36\n", "passed\n", "/print_uri_12\n", "passed\n", "{\"error_msg\":\"failed to match any routes\"}\n"]
+["passed\n", "/print_uri_20\n", "passed\n", "/print_uri_36\n", "passed\n", "/print_uri_12\n", "passed\n", "{\"error_msg\":\"404 Route Not Found\"}\n"]
--- no_error_log
[error]
--- timeout: 20
diff --git a/t/debug/hook.t b/t/debug/hook.t
index 49bce20..5b64d3c 100644
--- a/t/debug/hook.t
+++ b/t/debug/hook.t
@@ -85,7 +85,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/filter_func.t b/t/node/filter_func.t
index b016d13..e1e1672 100644
--- a/t/node/filter_func.t
+++ b/t/node/filter_func.t
@@ -76,6 +76,6 @@ hello world
GET /hello?a1=xxxx&a2=xxxx
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/global-rule.t b/t/node/global-rule.t
index a31a013..d2bc9fa 100644
--- a/t/node/global-rule.t
+++ b/t/node/global-rule.t
@@ -94,7 +94,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -105,7 +105,7 @@ GET /not_found
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/hosts.t b/t/node/hosts.t
index 0dc8dc3..edb0a1b 100644
--- a/t/node/hosts.t
+++ b/t/node/hosts.t
@@ -65,7 +65,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -78,7 +78,7 @@ GET /hello
Host: not_found.com
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/invalid-route.t b/t/node/invalid-route.t
index 42849c0..ca584a5 100644
--- a/t/node/invalid-route.t
+++ b/t/node/invalid-route.t
@@ -58,7 +58,7 @@ qr/"value":"mexxxxxxxxxxxxxxx"/
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- wait: 1
--- grep_error_log eval
qr/\[error\].*/
diff --git a/t/node/invalid-service.t b/t/node/invalid-service.t
index 8764dc4..8f4f0f9 100644
--- a/t/node/invalid-service.t
+++ b/t/node/invalid-service.t
@@ -59,7 +59,7 @@ qr/"value":"mexxxxxxxxxxxxxxx"/
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- wait: 1
--- grep_error_log eval
qr/\[error\].*/
diff --git a/t/node/invalid-upstream.t b/t/node/invalid-upstream.t
index 85b4ea6..9856c81 100644
--- a/t/node/invalid-upstream.t
+++ b/t/node/invalid-upstream.t
@@ -58,7 +58,7 @@ qr/"value":"mexxxxxxxxxxxxxxx"/
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- wait: 1
--- grep_error_log eval
qr/\[error\].*/
diff --git a/t/node/merge-route.t b/t/node/merge-route.t
index ec7ab7b..939bc50 100644
--- a/t/node/merge-route.t
+++ b/t/node/merge-route.t
@@ -103,7 +103,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/not-exist-upstream.t b/t/node/not-exist-upstream.t
index 73684ea..5a14010 100644
--- a/t/node/not-exist-upstream.t
+++ b/t/node/not-exist-upstream.t
@@ -68,7 +68,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/remote-addr-ipv6.t b/t/node/remote-addr-ipv6.t
index c4faa94..ed73f14 100644
--- a/t/node/remote-addr-ipv6.t
+++ b/t/node/remote-addr-ipv6.t
@@ -78,7 +78,7 @@ location /t {
--- request
GET /t
--- response_body eval
-qr/"error_msg":"failed to match any routes"/
+qr/"error_msg":"404 Route Not Found"/
--- no_error_log
[error]
@@ -90,7 +90,7 @@ qr/"error_msg":"failed to match any routes"/
GET /not_found
--- error_code: 404
--- response_body eval
-qr/"error_msg":"failed to match any routes"/
+qr/"error_msg":"404 Route Not Found"/
--- no_error_log
[error]
@@ -131,6 +131,6 @@ close: 1 nil}
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/remote-addr.t b/t/node/remote-addr.t
index 9d51980..3ddc1a1 100644
--- a/t/node/remote-addr.t
+++ b/t/node/remote-addr.t
@@ -62,7 +62,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -118,7 +118,7 @@ passed
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/remote_addrs.t b/t/node/remote_addrs.t
index 5abbea1..62386af 100644
--- a/t/node/remote_addrs.t
+++ b/t/node/remote_addrs.t
@@ -69,7 +69,7 @@ set_real_ip_from unix:;
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/route-domain-with-local-dns.t b/t/node/route-domain-with-local-dns.t
index d913c1d..fd0d172 100644
--- a/t/node/route-domain-with-local-dns.t
+++ b/t/node/route-domain-with-local-dns.t
@@ -73,7 +73,7 @@ qr/.*parse_args\(\): dns resolver\[.+\]/
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- error_log eval
qr/.*parse_args\(\): dns resolver\[.+\]/
--- no_error_log
diff --git a/t/node/route-domain.t b/t/node/route-domain.t
index 6fbd31d..184a8f5 100644
--- a/t/node/route-domain.t
+++ b/t/node/route-domain.t
@@ -65,7 +65,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/route-filter-func.t b/t/node/route-filter-func.t
index 6c67f41..31a4281 100644
--- a/t/node/route-filter-func.t
+++ b/t/node/route-filter-func.t
@@ -65,7 +65,7 @@ passed
GET /hello?name=unknown
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/route-host.t b/t/node/route-host.t
index 04a5a0d..7a965db 100644
--- a/t/node/route-host.t
+++ b/t/node/route-host.t
@@ -66,7 +66,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -77,7 +77,7 @@ GET /not_found
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -90,7 +90,7 @@ GET /hello
Host: not_found.com
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/route-parameter-uri.t b/t/node/route-parameter-uri.t
index 8499c0c..8da02c1 100644
--- a/t/node/route-parameter-uri.t
+++ b/t/node/route-parameter-uri.t
@@ -79,7 +79,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -90,7 +90,7 @@ GET /not_found
GET /name/json2/foo
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -101,7 +101,7 @@ GET /name/json2/foo
GET /name/json/
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -112,7 +112,7 @@ GET /name/json/
GET /name//bar
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -193,6 +193,6 @@ qr/404 Not Found/
GET /json/bbb/foo
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/sanity-radixtree.t b/t/node/sanity-radixtree.t
index 9f4a5c3..432f0be 100644
--- a/t/node/sanity-radixtree.t
+++ b/t/node/sanity-radixtree.t
@@ -65,7 +65,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -150,6 +150,6 @@ qr/404 Not Found/
GET /hel
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/upstream-domain.t b/t/node/upstream-domain.t
index 4869548..be62a56 100644
--- a/t/node/upstream-domain.t
+++ b/t/node/upstream-domain.t
@@ -91,7 +91,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/upstream-ipv6.t b/t/node/upstream-ipv6.t
index 23eaa56..7631a1e 100644
--- a/t/node/upstream-ipv6.t
+++ b/t/node/upstream-ipv6.t
@@ -103,7 +103,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/upstream-retries.t b/t/node/upstream-retries.t
index 81f90fc..3eb50f9 100644
--- a/t/node/upstream-retries.t
+++ b/t/node/upstream-retries.t
@@ -92,7 +92,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/upstream.t b/t/node/upstream.t
index ef88bbd..db0cdcb 100644
--- a/t/node/upstream.t
+++ b/t/node/upstream.t
@@ -152,7 +152,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/vars.t b/t/node/vars.t
index a51af1f..1467a0c 100644
--- a/t/node/vars.t
+++ b/t/node/vars.t
@@ -64,7 +64,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -75,7 +75,7 @@ GET /not_found
GET /hello?k=not-hit
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -130,7 +130,7 @@ passed
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -143,7 +143,7 @@ Cookie: k=not-hit; kkk=vvv;
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -200,7 +200,7 @@ passed
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -213,7 +213,7 @@ k: not-hit
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -270,7 +270,7 @@ passed
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -283,7 +283,7 @@ k: header
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/node/wildcard-host.t b/t/node/wildcard-host.t
index 5bfb95e..41da5b3 100644
--- a/t/node/wildcard-host.t
+++ b/t/node/wildcard-host.t
@@ -62,7 +62,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -73,7 +73,7 @@ GET /not_found
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/router/radixtree-host-uri.t b/t/router/radixtree-host-uri.t
index d547499..63e07d4 100644
--- a/t/router/radixtree-host-uri.t
+++ b/t/router/radixtree-host-uri.t
@@ -75,7 +75,7 @@ GET /not_found
--- yaml_config eval: $::yaml_config
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -87,7 +87,7 @@ GET /hello
--- yaml_config eval: $::yaml_config
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -101,7 +101,7 @@ GET /hello
Host: not_found.com
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -171,7 +171,7 @@ GET /hello
--- yaml_config eval: $::yaml_config
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -230,7 +230,7 @@ GET /hello2
--- yaml_config eval: $::yaml_config
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/router/radixtree-uri-host.t b/t/router/radixtree-uri-host.t
index c2e7b10..7dab68c 100644
--- a/t/router/radixtree-uri-host.t
+++ b/t/router/radixtree-uri-host.t
@@ -66,7 +66,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -156,7 +156,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -233,7 +233,7 @@ passed
GET /hello?name=unknown
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/router/radixtree-uri-multiple.t b/t/router/radixtree-uri-multiple.t
index 0b8d1f6..1187220 100644
--- a/t/router/radixtree-uri-multiple.t
+++ b/t/router/radixtree-uri-multiple.t
@@ -130,7 +130,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
diff --git a/t/router/radixtree-uri-sanity.t b/t/router/radixtree-uri-sanity.t
index 587b385..e91834d 100644
--- a/t/router/radixtree-uri-sanity.t
+++ b/t/router/radixtree-uri-sanity.t
@@ -66,7 +66,7 @@ passed
GET /not_found
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -77,7 +77,7 @@ GET /not_found
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -90,7 +90,7 @@ GET /hello
Host: not_found.com
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -147,7 +147,7 @@ passed
GET /hello
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]
@@ -204,7 +204,7 @@ passed
GET /hello2
--- error_code: 404
--- response_body
-{"error_msg":"failed to match any routes"}
+{"error_msg":"404 Route Not Found"}
--- no_error_log
[error]