perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

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

Open tungtv202 opened 3 years ago

tungtv202 commented 3 years ago

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

Bugjudger commented 3 years ago

Hello, I want to try to solve this problem