Skip to content

Glossary: Go Beyond the Basics

http.ErrServerClosed

Also written: ErrServerClosed

The error `ListenAndServe` returns after a deliberate shutdown. It should be treated as success.

Where the book teaches it

Related terms

srv.Shutdownhttp.Server