WMDE-leszek created this task. WMDE-leszek added projects: Wikibase Product Platform, Story, Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION See the 404 error response in specification https://wmde.github.io/wikibase-rest-api-proposal/#/items/get_entities_items__entity_id_ `code` is a symbolic category of errors `message` is a human readable error message **BDD** WHEN I request GET /entities/items/{item_id} with ID of item that does not exist THEN I get 404 HTTP response AND it contains a correct code and message **BDD** WHEN I request GET /entities/items/{item_id} with a text which is not an item ID THEN I get 400 HTTP request AND it contains a correct code and message TODO: @WMDE-leszek to define codes and messages for respective error cases. Not included in this story - internationalized/translated error message via Accept-Language HTTP header TASK DETAIL https://phabricator.wikimedia.org/T302065 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: WMDE-leszek Cc: WMDE-leszek, Aklapper, karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
