diff --git a/modules/caddyhttp/reverseproxy/fastcgi/client.go b/modules/caddyhttp/reverseproxy/fastcgi/client.go index 43c76a7f..18c9d0ba 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/client.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/client.go @@ -209,6 +209,7 @@ func newErrorResponse(status int) *http.Response { statusText := http.StatusText(status) resp := &http.Response{ Status: statusText, + StatusCode: status, Header: make(http.Header), Body: io.NopCloser(strings.NewReader(statusText)), ContentLength: int64(len(statusText)),