perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method not allowed (405) but the response return not found (404)

tungtv202 opened this issue · comments

With simple example at https://github.com/perwendel/spark/blob/master/README.md#examples
When I curl a request with the not declare method. Ex:

curl --location --request PUT 'localhost:4567/hello'

The response return status 404, but not is 405

Hello, I want to try to solve this problem