mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 23:57:49 +00:00
Merge pull request #650 from smarterclayton/use_constant_code
Use http.StatusInternalServerError instead of 500
This commit is contained in:
commit
5d12b63bdf
@ -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