dphiffer / wp-json-api

WordPress JSON API
http://wordpress.org/extend/plugins/json-api/
258 stars 181 forks source link

Unknown method returns 200 #28

Closed pdl closed 9 years ago

pdl commented 9 years ago
GET /api/foo/
=> {"status":"error","error":"Uknown method 'foo'."}

... which is all well and good (I've put in a PR for the typo). But the response code in this case is 200, which implies some sort of success; a 4xx error (probably 404) would surely be more appropriate?

dphiffer commented 9 years ago

This is a good idea, thanks @pdl. This will be updated in version 1.1.2.