api: Extend S3 errors with Minio errors. (#1533)

Fixes #1530
This commit is contained in:
Harshavardhana
2016-05-08 12:36:16 -07:00
committed by Anand Babu (AB) Periasamy
parent 75320f70d0
commit 76c511c9fe
3 changed files with 33 additions and 33 deletions

View File

@@ -405,8 +405,8 @@ func writeWebErrorResponse(w http.ResponseWriter, err error) {
apiErrCode = ErrBadDigest
case IncompleteBody:
apiErrCode = ErrIncompleteBody
case ObjectExistsAsPrefix:
apiErrCode = ErrObjectExistsAsPrefix
case ObjectExistsAsDirectory:
apiErrCode = ErrObjectExistsAsDirectory
case ObjectNotFound:
apiErrCode = ErrNoSuchKey
case ObjectNameInvalid: