From 666bf23e5ee95d46ab290f69219c1d43eb807cec Mon Sep 17 00:00:00 2001 From: James Gunn Date: Fri, 19 Jul 2024 12:02:58 +0100 Subject: [PATCH] Tweak error response status code when TRN doesn't exist (#1427) --- docs/api-designs/deceased.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-designs/deceased.md b/docs/api-designs/deceased.md index bd34e99cd..a5ebb9889 100644 --- a/docs/api-designs/deceased.md +++ b/docs/api-designs/deceased.md @@ -13,6 +13,6 @@ Request body structure: The `dateOfDeath` property is mandatory and should be formatted `yyyy-MM-dd`. -If no record exists with the specified TRN, a `404 Not Found` status code will be returned. +If no record exists with the specified TRN, a `400 Bad Request` status code will be returned. If the request is valid, a `204 No Content` status code will be returned.