Skip to content

405 Method not allowed #86

Open
Open
@obschepit

Description

@obschepit

hi!
maybe it would be better to send '405 Method not allowed', if the path is present in route but method not allowed.
I explain.

local server = httpd.new('127.0.0.1', 8089)
server:route({ path = '/', method = 'GET' }, http.testRequest)

curl -X POST "http://127.0.0.1:8089/" -v
< HTTP/1.1 404 Not found

(https://tools.ietf.org/html/rfc7231#section-6.5.5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions