use http.Status* instead of hard-coded 500 integer