Revert "Merge pull request #631 from metaflow/fix-delete-key-as-directory"
This reverts commitb87972713e
, reversing changes made tobd8d45ce28
.
This commit is contained in:
@ -131,7 +131,7 @@ func (e Error) Write(w http.ResponseWriter) {
|
||||
switch e.ErrorCode {
|
||||
case EcodeKeyNotFound:
|
||||
status = http.StatusNotFound
|
||||
case EcodeNotFile, EcodeDirNotEmpty, EcodeNotDir:
|
||||
case EcodeNotFile, EcodeDirNotEmpty:
|
||||
status = http.StatusForbidden
|
||||
case EcodeTestFailed, EcodeNodeExist:
|
||||
status = http.StatusPreconditionFailed
|
||||
|
Reference in New Issue
Block a user