actix-web: Using an existing resource with a wrong HTTP method should return 405, not 404

For example, attempting to POST /resource to:

    App::new(state).resource("/resource", |r| r.method(Method::GET).f(handler))

Should return 405 “method not implemented”. Currently returns 404…

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 20 (19 by maintainers)

Most upvoted comments

@MarinPostma can you make a new issue with the required detail if this is still an issue for you on v3.