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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -