Closed ghost closed 5 years ago
This seems very strange. This functionality has been present for quite a while and there has been no report of not working. I just tried this out:
get("/hello", (q, a) -> "hello");
notFound("custom 404");
ran and access localhost:4567/notmatched
and got the result custom 404
.
Not running embedded perhaps?
What do you mean? I thought 2.7.2 has embedded?
I'll try making a new project and test it
Even when I register the response for 404 response codes spark responses with not found and says powered by jetty.