json - 405 http status code clarification for delete rest api in spring mvc -
i have rest api delete requestmethod.delete.
i have @pathvariable("mediaid") string mediaid.
when invoke api out path paramert value below, 405 method not allowed.
http://localhost:8080/myservice/deleteme/mediaid/
the definition of 405 in wiki below,
405 method not allowed request method not supported requested resource; example, request on form requires data presented via post, or put request on read-only resource.
since use correct http method delete invoke delete api, why getting 405? in opinion, 400 more valid?
Comments
Post a Comment