cscd: return meaningful error codes.