Skip to content

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)`.

Where the book teaches it

Related terms

status codehandler (HTTP)