Forgot to add Checkpoint 2 requests to the notes.

They are there now :)
This commit is contained in:
Danielle Tear 2024-03-11 18:12:01 -04:00
parent 6de3b3ab61
commit c33b40af81
1 changed files with 15 additions and 0 deletions

View File

@ -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 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 the riddle server. Paste below several `http` requests and the status codes
they return. 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"