Page MenuHomePhabricator

❓ [Generalised error] Referenced resource not found
Closed, ResolvedPublic8 Estimated Story Points

Description

Acceptance criteria:

  • Current messages it will replace: Sitelink title does not exist for all endpoints except PATCH
  • New error cases that this will cover: Property of a statement/qualifier/reference
  • HTTP status code: 400
  • Error code: referenced-resource-not-found
  • Error message: The referenced resource does not exist
  • Error context: { "path": "{json_pointer}" }

Event Timeline

This is a separate error than https://phabricator.wikimedia.org/T366258 because in this case the missing "thing" is being referenced instead of requested (as opposed to labels/aliases not being found for a language, also why it is a 400 and not a 404).

Ifrahkhanyaree_WMDE renamed this task from [Generalised error] Content not found to [Generalised error] Referenced resource not found.Aug 14 2024, 12:19 PM
Ifrahkhanyaree_WMDE removed the point value for this task.

Task Breakdown Notes

  • handle non-existent sitelink
  • handle non-existent property for statement/qualifier/reference

Note: pls do not forget to modify the OpenAPI specification

Dima_Koushha_WMDE renamed this task from [Generalised error] Referenced resource not found to ❓ [Generalised error] Referenced resource not found.Sep 10 2024, 9:37 AM