mirror of
https://github.com/minio/minio.git
synced 2026-02-12 22:00:16 -05:00
@@ -109,8 +109,7 @@ func generateObjectsListResult(bucket string, objects []drivers.ObjectMetadata,
|
||||
return data
|
||||
}
|
||||
|
||||
// WriteErrorResponse writes a formatted error to the user
|
||||
func WriteErrorResponse(w http.ResponseWriter, req *http.Request, errorType int, acceptsContentType contentType, resource string) {
|
||||
func writeErrorResponse(w http.ResponseWriter, req *http.Request, errorType int, acceptsContentType contentType, resource string) {
|
||||
error := getErrorCode(errorType)
|
||||
errorResponse := getErrorResponse(error, resource)
|
||||
// set headers
|
||||
|
||||
Reference in New Issue
Block a user