mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
Reply back proper statuses for DeleteBucket/DeleteObject
This commit is contained in:
@@ -212,6 +212,12 @@ func writeSuccessResponse(w http.ResponseWriter) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
}
|
||||
|
||||
// writeSuccessNoContent write success headers with http status 204
|
||||
func writeSuccessNoContent(w http.ResponseWriter) {
|
||||
setCommonHeaders(w, 0)
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
}
|
||||
|
||||
// writeErrorRespone write error headers
|
||||
func writeErrorResponse(w http.ResponseWriter, req *http.Request, errorType int, resource string) {
|
||||
error := getErrorCode(errorType)
|
||||
|
||||
Reference in New Issue
Block a user