If you wrap ScimError with fmt.Error() or similar, it will not be recognized as a ScimError by CheckScimError.
To make it easier to handle errors, I would like to judge them using errors.As() rather than err.(ScimError).
https://pkg.go.dev/errors#As
Would you be so kind as to accept the PR to replace errors.As?
I'm happy to work on this if it's likely to be accepted.