Use http.StatusInternalServerError instead of 500

This commit is contained in:
Clayton Coleman 2014-07-27 15:37:03 -04:00
parent ab91e074d8
commit 1047c57c6d

View File

@ -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)
}