remove some http hard code (#2047)
Co-authored-by: yonbiaoxiao <yonbiaoxiao@tencent.com>
This commit is contained in:
		| @@ -30,7 +30,7 @@ func WriteBadRequestError(w http.ResponseWriter, err error) { | ||||
| 		WriteInternalServerError(w, err) | ||||
| 		return | ||||
| 	} | ||||
| 	Write(w, "application/json", 400, string(rawBody)) | ||||
| 	Write(w, "application/json", http.StatusBadRequest, string(rawBody)) | ||||
| } | ||||
|  | ||||
| // WriteInternalServerError sets a 500 status code | ||||
|   | ||||
		Reference in New Issue
	
	Block a user