Pompey21 / Client-Server-Rust-2

A simple client-server application but I start from scratch!
0 stars 0 forks source link

Instead of Echoing Back, Send HTTP Code #26

Closed Pompey21 closed 1 year ago

Pompey21 commented 1 year ago

Instead of sending back the echo of whatever was sent, maybe send back an HTTP code.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status

Pompey21 commented 1 year ago

Done. Added 200 OK is successful and 400 BAD REQUEST if unsuccessful.