You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pds): return 400 RecordNotFound and treat deleteRecord as no-op (#189)
* fix(pds): return 400 RecordNotFound and treat deleteRecord as no-op
Match the reference @atproto PDS: getRecord raises InvalidRequestError
(HTTP 400) with RecordNotFound, and deleteRecord on a missing record is
a 200 no-op rather than an error. Adds a pdscheck for the getRecord
status code.
* test(pds): update e2e tests for new RecordNotFound semantics
Align `com.atproto.repo.getRecord` and `com.atproto.repo.deleteRecord` error handling with the reference @atproto PDS:
6
+
7
+
-`getRecord` now returns HTTP 400 (not 404) with `RecordNotFound` when the record is missing. The reference PDS raises `InvalidRequestError`, which maps to 400.
8
+
-`deleteRecord` on a missing record is now a 200 no-op (returning an empty body with no commit) instead of `RecordNotFound`, matching the reference PDS.
label: "getRecord returns 400 RecordNotFound for missing record",
571
+
description:
572
+
"Matches the reference @atproto PDS, which raises InvalidRequestError (HTTP 400) with error 'RecordNotFound' rather than returning a 404. Clients that probe a record before writing it (for example detaching a quote, which checks app.bsky.feed.postgate first) rely on this.",
0 commit comments