From 82a135cf1e7ff688afbf0a08c6dd9b0d49cd12e8 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 21 Oct 2022 03:21:05 +0400 Subject: [PATCH] Removed 404 for GET /. 204 changed to 201 for POST /:entry/reply. Specified 404 for DELETE /:entry/reply. --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d902546..caeb851 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ justguestbook ver. 1.0.0 #### HTTP codes - `200` if there are entries. -- `404` if there's no entries. - `500` if for some reason a list cannot be sent. ### Post a new guestbook entry @@ -61,7 +60,7 @@ All such commands must have a password supplied in `X-Password` header. - `message` for an entry. Required. #### HTTP codes -- `204` if created or modified successfully. +- `201` if created or modified successfully. - `403` if unauthorised. - `404` if there's no such entry. - `500` if there are internal problems with service. @@ -83,5 +82,5 @@ All such commands must have a password supplied in `X-Password` header. #### HTTP codes - `204` if was successfully deleted. - `403` if unauthorised. -- `404` if there's no such entry. +- `404` if there's no such entry or reply. - `500` if there are internal problems with service. \ No newline at end of file