2024-01-18 11:35:52 +00:00
|
|
|
package ape
|
|
|
|
|
|
|
|
import (
|
|
|
|
apistatus "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/client/status"
|
|
|
|
)
|
|
|
|
|
|
|
|
func toStatusErr(err error) error {
|
|
|
|
errAccessDenied := &apistatus.ObjectAccessDenied{}
|
2024-03-11 14:55:50 +00:00
|
|
|
errAccessDenied.WriteReason("ape denied request: " + err.Error())
|
2024-01-18 11:35:52 +00:00
|
|
|
return errAccessDenied
|
|
|
|
}
|