mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-20 01:01:22 +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) {
|
func (server *APIServer) error(err error, w http.ResponseWriter) {
|
||||||
w.WriteHeader(500)
|
w.WriteHeader(http.StatusInternalServerError)
|
||||||
fmt.Fprintf(w, "Internal Error: %#v", err)
|
fmt.Fprintf(w, "Internal Error: %#v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user