debugserver: Return enum error type instead of int for type consistency