Using ErrorCode instead of int64 in the ErrorResponse type removes the burden of type conversion from calling code.