https://bugzilla.wikimedia.org/show_bug.cgi?id=38716
Bawolff <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Bawolff <[email protected]> 2012-07-31 18:47:18 UTC --- >return 404's when I request a page that doesn't exist >a 400 bad request when I provide the wrong parameters >and 403 Forbidden when I try to do something I am not authorised to do And what do you suggest for the following query: http://en.wikipedia.org/w/api.php?action=query&list=allimages&aifrom=B&ailimit=502&titles=dog|A_bird_named_sam&prop=info|pencil *200 because it retrieved valid info for the article Dog *400 because there is no prop named "pencil" *403 because I don't have a apihighlimits right needed to set ailimit > 500 *404 because there is no article with the name A bird named sam *303/301/302 because "dog" should actually be "Dog" *418 because newbies who make stupid api requests such as my contrived example do not get invited to a "coffeehouse" (207 is cheating ;) Also if we're being anal, I suppose 401 might be more appropriate than 403 ---- Sufficed to say, I am opposed to using status codes in this manner. It may be ok for things that are fatal api errors (like things that output "errors" not warnings. list=deletedrevs when you don't have permission), but i'm not exactly convinced of that either. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
