5XX errors raised on net/http

Hi guys.
Despite what documentation says about 5XX errors, can someone please point me out in what part of the http library or where can i find the exact reasons on when http 502, 503 and 504 are raised ?

Im using traefik edge router (https://containo.us/traefik/) there i asked the same question but they point me out that they are using standard http libraries, so i should check here.

Can somebody help me please ?
thanks !

This site documents all HTTP status codes in a concise way: https://httpstatuses.com/

  • 502 Bad Gateway: Probably your Go application is not running or is listening on a different IP address or port than given in traefik.
  • 503 Service Unavailable: Your Go application is running but currently can’t handle requests.
  • 504 Gateway Timeout: The request from traefik to your Go application timed out.
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.