Glossary: Go Beyond the Basics
http.Error
Writes a status code and a plain-text message as the response, e.g. `http.Error(w, "no such product", http.StatusNotFound)`.
Glossary: Go Beyond the Basics
Writes a status code and a plain-text message as the response, e.g. `http.Error(w, "no such product", http.StatusNotFound)`.