From a579b7fe4ad6d6145757a3d87f19ef98e2bead9a Mon Sep 17 00:00:00 2001 From: James Gunn Date: Fri, 19 Jul 2024 11:49:54 +0100 Subject: [PATCH] Tweak error response status code when TRN doesn't exist --- 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.