mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
Use http.StatusInternalServerError instead of 500
This commit is contained in:
parent
ab91e074d8
commit
1047c57c6d
@ -356,7 +356,7 @@ func (server *APIServer) write(statusCode int, object interface{}, w http.Respon
|
||||
}
|
||||
|
||||
func (server *APIServer) error(err error, w http.ResponseWriter) {
|
||||
w.WriteHeader(500)
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
fmt.Fprintf(w, "Internal Error: %#v", err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user