From beeffe7ce621fb981a6b26b2c4e978cab97e3840 Mon Sep 17 00:00:00 2001 From: James McHugh Date: Fri, 23 Aug 2024 13:55:53 -0400 Subject: [PATCH] Updated README --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 581926c..3dff263 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ This is the backend API repository for TurLink. TurLink is a link shortener app } } ``` - - Error Response (422 Unprocessable Entity): + - Error Response (422 Unprocessable Entity) -- when original link isn't entered: ```json { "errors": [ @@ -136,7 +136,7 @@ This is the backend API repository for TurLink. TurLink is a link shortener app ] } ``` - - Error Response (404 Not Found): + - Error Response (404 Not Found) -- when user_id is not valid: ```json { "errors": [ @@ -182,13 +182,12 @@ This is the backend API repository for TurLink. TurLink is a link shortener app } } ``` - - Error Response (422 Unprocessable Entity): + - Error Response (404 Not Found) -- when user_id is not valid: ```json { "errors": [ { - "status": "unprocessable_entity", - "message": "User must exist" + "message": "Record not found" } ] } @@ -212,13 +211,12 @@ This is the backend API repository for TurLink. TurLink is a link shortener app } } ``` - - Error Response (404 Not Found): + - Error Response (404 Not Found) -- when shortened link is not entered or does not exist: ```json { "errors": [ { - "status": "unprocessable_entity", - "message": "User must exist" + "message": "Record not found" } ] }