From c33b40af81c394faca3913c0f246ec593e1f2a96 Mon Sep 17 00:00:00 2001 From: Danielle Tear Date: Mon, 11 Mar 2024 18:12:01 -0400 Subject: [PATCH] Forgot to add Checkpoint 2 requests to the notes. They are there now :) --- notes.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/notes.md b/notes.md index 278621b..c2af7af 100644 --- a/notes.md +++ b/notes.md @@ -21,3 +21,18 @@ Line 14: This shows the filetype of what was requested. The goal of this checkpoint is to see what status codes you can get back from the riddle server. Paste below several `http` requests and the status codes they return. + +400 Bad Request: + +http -v post https://riddles.makingwithcode.org/guess id=1000 answer="a short-legged cow" +http -v post https://riddles.makingwithcode.org/guess id=invalid_id answer="a short-legged cow" + +404 Not Found: + +http -v post https://riddles.makingwithcode.org/guess/this_is_wrong id=1 answer="a short-legged cow" +http -v post https://riddles.makingwithcode.org/guessssssssssssssss id=1 answer="a short-legged cow" + +405 Method Not Found: + +http -v posts https://riddles.makingwithcode.org/guess id=1 answer="a short-legged cow" +http -v invalidmethod https://riddles.makingwithcode.org/guess id=1 answer="a short-legged cow"