@@ -15,8 +15,8 @@ Implement the following HTTP endpoints:
15151 . GET ` / ` : Sends HTML response, the main page.\
1616 1.1. GET Tip: [ go templates] ( https://golang.org/pkg/html/template/ ) to receive and display data from the server.
1717
18- 2 . POST ` /ascii-art ` : that sends data to Go server (text and a banner)\
19- 2.1. POST Tip: use form and other types of [ tags] ( https://developer.mozilla.org/en-US/docs/Web/HTML/Element ) to make the post request.\
18+ 2 . POST ` /ascii-art ` : that sends data (text and specified banner) to the Go server. \
19+ 2.1. POST Tip: use form and other types of [ tags] ( https://developer.mozilla.org/en-US/docs/Web/HTML/Element ) to make the post request.
2020
2121The way you display the result from the POST is up to you. What we recommend are one of the following :
2222
@@ -25,18 +25,18 @@ The way you display the result from the POST is up to you. What we recommend are
2525
2626The main page must have:
2727
28- - text input
29- - radio buttons, select object or anything else to switch between banners
30- - button, which sends a POST request to '/ascii-art' and outputs the result on the page.
28+ - a text input field
29+ - radio buttons, select object or another method to switch between banners
30+ - a button that sends a POST request to '/ascii-art' and displays the result on the page.
3131
3232### HTTP status code
3333
3434Your endpoints must return appropriate HTTP status codes.
3535
36- - OK ( 200) , if everything went without errors.
37- - Not Found, if nothing is found, for example templates or banners.
38- - Bad Request, for incorrect requests.
39- - Internal Server Error, for unhandled errors.
36+ - 200 OK , if everything went without errors.
37+ - 404 Not Found, if nothing is found, for example templates or banners.
38+ - 400 Bad Request, for incorrect requests.
39+ - 500 Internal Server Error, for unhandled errors.
4040
4141## Markdown
4242
0 commit comments