Skip to content

Commit

Permalink
Merge pull request kubernetes#650 from smarterclayton/use_constant_code
Browse files Browse the repository at this point in the history
Use http.StatusInternalServerError instead of 500
  • Loading branch information
smarterclayton committed Jul 27, 2014
2 parents a14a6f5 + 1047c57 commit 5d12b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5d12b63

Please sign in to comment.