From bac9afa124b47ed722a74c00ef7c65d83308beb4 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Fri, 15 May 2020 12:14:46 -0400 Subject: [PATCH] document error codes and remove a statement that isn't true --- proposals/2526-add-delete-backup.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proposals/2526-add-delete-backup.md b/proposals/2526-add-delete-backup.md index e4d589e3..b41fe5a3 100644 --- a/proposals/2526-add-delete-backup.md +++ b/proposals/2526-add-delete-backup.md @@ -8,7 +8,7 @@ delete an entire key backup. This proposal adds the endpoint. An endpoint is added, `DELETE /room_keys/version/{version}`, that deletes a backup version. Both the information about the key backup, as well as all keys -associated with the backup should be deleted. Like `POST -/room_keys/version/{version}`, and unlike `GET /room_keys/version/{version}`, -`{version}` cannot be empty, to ensure that the wrong backup is not -accidentally deleted. +associated with the backup should be deleted. If the specified version was +previously deleted, the endpoint succeeds, returning an HTTP code of 200. If +the specified version never existed, the endpoint returns an HTTP code of 404 +with a Matrix `errcode` of `M_NOT_FOUND`.